Skip to content

Commit f9fbf9c

Browse files
authored
Merge pull request #5 from yslpn/main
chore: sync main to next
2 parents c485dcb + 0819886 commit f9fbf9c

File tree

125 files changed

+3587
-1804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+3587
-1804
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@ name: release
33
on:
44
workflow_dispatch:
55
inputs:
6-
npmTag:
6+
versionType:
77
type: choice
8-
description: 'NPM tag to release'
8+
description: 'Version type to publish'
99
options:
1010
- latest
1111
- next
1212
required: true
1313
default: "latest"
1414

1515
jobs:
16-
release:
16+
publish:
1717
runs-on: ubuntu-latest
18+
permissions:
19+
id-token: write
20+
contents: read
1821

1922
steps:
2023
- uses: actions/checkout@v4
@@ -35,32 +38,10 @@ jobs:
3538
- name: Build packages
3639
run: yarn release:build
3740

38-
- name: Unit Testing
39-
run: yarn test:ci
40-
41-
- name: Linting & Types
42-
run: yarn lint:all
43-
44-
- name: Creates local .npmrc
45-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
46-
47-
- name: Prepare Lingui-Bot git account
48-
uses: oleksiyrudenko/gha-git-credentials@v2-latest
49-
with:
50-
name: 'Lingui Bot'
51-
52-
actor: 'lingui-bot'
53-
token: '${{ secrets.GH_TOKEN }}'
54-
55-
- name: Versioning packages
56-
env:
57-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
58-
run: yarn version:${{github.event.inputs.npmTag}}
59-
60-
- name: Packaging packages with newer version
61-
run: yarn release:build
41+
- name: Install npm CLI
42+
run: yarn global add npm
6243

6344
- name: Publishing packages
6445
env:
6546
GH_TOKEN: ${{ secrets.GH_TOKEN }}
66-
run: yarn release:${{github.event.inputs.npmTag}}
47+
run: yarn release:${{github.event.inputs.versionType}}

.github/workflows/version-bump.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: version-bump
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
versionType:
7+
type: choice
8+
description: 'Version type to bump'
9+
options:
10+
- latest
11+
- next
12+
required: true
13+
default: "latest"
14+
15+
jobs:
16+
version-bump:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup node
25+
uses: actions/setup-node@v4
26+
with:
27+
always-auth: true
28+
node-version: 20
29+
cache: 'yarn'
30+
scope: '@lingui'
31+
32+
- name: Install dependencies if needed
33+
run: yarn install
34+
35+
- name: Build packages
36+
run: yarn release:build
37+
38+
- name: Unit Testing
39+
run: yarn test:ci
40+
41+
- name: Linting & Types
42+
run: yarn lint:all
43+
44+
- name: Prepare Lingui-Bot git account
45+
uses: oleksiyrudenko/gha-git-credentials@v2-latest
46+
with:
47+
name: 'Lingui Bot'
48+
49+
actor: 'lingui-bot'
50+
token: '${{ secrets.GH_TOKEN }}'
51+
52+
- name: Versioning packages
53+
env:
54+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
55+
run: yarn version:${{github.event.inputs.versionType}}

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [5.5.0](https://github.com/lingui/js-lingui/compare/v5.4.1...v5.5.0) (2025-09-12)
7+
8+
### Features
9+
10+
* add babel parser flag for import defer * as q from '...' ([#2309](https://github.com/lingui/js-lingui/issues/2309)) ([a09c973](https://github.com/lingui/js-lingui/commit/a09c973c914e3a1ab406ea6630691feef5b0c0f9))
11+
* **cli:** support multithreading in all cli commands ([#2320](https://github.com/lingui/js-lingui/issues/2320)) ([86fbcd8](https://github.com/lingui/js-lingui/commit/86fbcd849b82d500f67fabd7c4f6abef7e5914f2))
12+
13+
## [5.4.1](https://github.com/lingui/js-lingui/compare/v5.4.0...v5.4.1) (2025-08-11)
14+
15+
### Bug Fixes
16+
17+
* **extractor:** sort placeholders to keep them stable between runs ([#2307](https://github.com/lingui/js-lingui/issues/2307)) ([decf4cd](https://github.com/lingui/js-lingui/commit/decf4cd0e06e1d913b228018ee77d6d5b83d26c3))
18+
* remove @messageformat/date-skeleton from bundledDependencies ([#2293](https://github.com/lingui/js-lingui/issues/2293)) ([9601701](https://github.com/lingui/js-lingui/commit/96017018433310a6ba7a21dc9b6ce1d4f3c6965a))
19+
20+
# [5.4.0](https://github.com/lingui/js-lingui/compare/v5.3.3...v5.4.0) (2025-08-01)
21+
22+
### Bug Fixes
23+
24+
* remove `VFC`, `FC` type usage ([#2290](https://github.com/lingui/js-lingui/issues/2290)) ([30e5242](https://github.com/lingui/js-lingui/commit/30e5242f132a7e0aa847f45b472330f6113b0168))
25+
* remove metro peer dep from metro-transformer ([#2287](https://github.com/lingui/js-lingui/issues/2287)) ([eb8a429](https://github.com/lingui/js-lingui/commit/eb8a4295bf3ea216a8bc1cba736f28e6b44c9107))
26+
27+
28+
### Features
29+
30+
* full concurrency for extract / compile commands ([#2299](https://github.com/lingui/js-lingui/issues/2299)) ([489fb3a](https://github.com/lingui/js-lingui/commit/489fb3a7c999632e57286369e44a0c6e77a3407b))
31+
632
## [5.3.3](https://github.com/lingui/js-lingui/compare/v5.3.2...v5.3.3) (2025-07-11)
733

834
### Bug Fixes

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ There are two documented ways to do this: first is a generic way described in th
117117
YARN_NPM_REGISTRY_SERVER=http://0.0.0.0:4873/ yarn up "@lingui/*"
118118
```
119119

120+
with PNPM:
121+
122+
```sh
123+
pnpm -r up "@lingui/*" --latest --registry=http://0.0.0.0:4873/
124+
```
125+
120126
5. After you make some changes, you need to run the same process. (Releasing + yarn upgrade)
121127

122128
6. When finished testing, restore default registry (only for NPM)

examples/react-native/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@
1111
"extract": "lingui extract",
1212
"compile": "lingui compile",
1313
"no-dev": "npx expo start -c --no-dev --minify",
14-
"fix-deps": "npx expo install expo@53 --check",
14+
"fix-deps": "npx expo install expo@^53 --check",
1515
"bundle": "expo export --dev=true --output-dir=dist --platform=ios --no-minify --no-bytecode"
1616
},
1717
"dependencies": {
1818
"@formatjs/intl-locale": "^4.0.2",
1919
"@formatjs/intl-pluralrules": "^5.2.16",
20-
"@lingui/core": "^5.3.1",
21-
"@lingui/react": "^5.3.1",
22-
"expo": "^53.0.7",
20+
"@lingui/core": "^5.4.0",
21+
"@lingui/react": "^5.4.0",
22+
"expo": "^53.0.20",
2323
"expo-status-bar": "~2.2.3",
24-
"expo-updates": "~0.28.12",
24+
"expo-updates": "~0.28.17",
2525
"react": "19.0.0",
26-
"react-native": "0.79.2",
26+
"react-native": "0.79.5",
2727
"react-native-web": "^0.20.0"
2828
},
2929
"devDependencies": {
3030
"@babel/core": "^7.26.0",
31-
"@lingui/babel-plugin-lingui-macro": "^5.3.1",
32-
"@lingui/cli": "^5.3.1",
33-
"@lingui/macro": "^5.3.1",
34-
"@lingui/metro-transformer": "^5.3.1",
31+
"@lingui/babel-plugin-lingui-macro": "^5.4.0",
32+
"@lingui/cli": "^5.4.0",
33+
"@lingui/macro": "^5.4.0",
34+
"@lingui/metro-transformer": "^5.4.0",
3535
"@react-native-community/eslint-config": "^3.2.0",
3636
"@types/react": "~19.0.10",
3737
"@typescript-eslint/eslint-plugin": "^5.59.11",

0 commit comments

Comments
 (0)