gt-next 6.1.2 → 6.1.3-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/config-dir/I18NConfiguration.d.ts +4 -10
- package/dist/config-dir/I18NConfiguration.d.ts.map +1 -1
- package/dist/config-dir/I18NConfiguration.js +6 -34
- package/dist/config-dir/I18NConfiguration.js.map +1 -1
- package/dist/config-dir/TranslationManager.d.ts +1 -25
- package/dist/config-dir/TranslationManager.d.ts.map +1 -1
- package/dist/config-dir/TranslationManager.js +8 -58
- package/dist/config-dir/TranslationManager.js.map +1 -1
- package/dist/config-dir/props/defaultWithGTConfigProps.d.ts +5 -1
- package/dist/config-dir/props/defaultWithGTConfigProps.d.ts.map +1 -1
- package/dist/config-dir/props/defaultWithGTConfigProps.js +7 -1
- package/dist/config-dir/props/defaultWithGTConfigProps.js.map +1 -1
- package/dist/config-dir/props/withGTConfigProps.d.ts +8 -0
- package/dist/config-dir/props/withGTConfigProps.d.ts.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +65 -21
- package/dist/config.js.map +1 -1
- package/dist/errors/createErrors.d.ts +7 -1
- package/dist/errors/createErrors.d.ts.map +1 -1
- package/dist/errors/createErrors.js +18 -3
- package/dist/errors/createErrors.js.map +1 -1
- package/dist/gt_swc_plugin.wasm +0 -0
- package/dist/provider/GTProvider.d.ts.map +1 -1
- package/dist/provider/GTProvider.js +2 -5
- package/dist/provider/GTProvider.js.map +1 -1
- package/dist/server-dir/buildtime/T.d.ts +3 -1
- package/dist/server-dir/buildtime/T.d.ts.map +1 -1
- package/dist/server-dir/buildtime/T.js +37 -33
- package/dist/server-dir/buildtime/T.js.map +1 -1
- package/dist/server-dir/buildtime/getGT.d.ts +3 -3
- package/dist/server-dir/buildtime/getGT.d.ts.map +1 -1
- package/dist/server-dir/buildtime/getGT.js +167 -57
- package/dist/server-dir/buildtime/getGT.js.map +1 -1
- package/dist/server-dir/buildtime/getTranslations.d.ts.map +1 -1
- package/dist/server-dir/buildtime/getTranslations.js +19 -20
- package/dist/server-dir/buildtime/getTranslations.js.map +1 -1
- package/dist/server-dir/runtime/_Tx.d.ts.map +1 -1
- package/dist/server-dir/runtime/_Tx.js +9 -9
- package/dist/server-dir/runtime/_Tx.js.map +1 -1
- package/dist/server-dir/runtime/tx.js +10 -12
- package/dist/server-dir/runtime/tx.js.map +1 -1
- package/package.json +30 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-next",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.3-alpha.1",
|
|
4
4
|
"description": "A Next.js library for automatic internationalization.",
|
|
5
5
|
"main": "dist/index.server.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -14,14 +14,16 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@generaltranslation/supported-locales": "^2.0.13",
|
|
17
|
-
"generaltranslation": "^7.
|
|
18
|
-
"gt-react": "^10.2.
|
|
17
|
+
"generaltranslation": "^7.3.1-alpha.0",
|
|
18
|
+
"gt-react": "^10.2.2-alpha.0"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"patch": "npm version patch",
|
|
22
22
|
"transpile": "tsc",
|
|
23
|
-
"build": "
|
|
24
|
-
"build:
|
|
23
|
+
"build:swc-plugin": "cargo build --release --target wasm32-wasip1 --manifest-path ./swc-plugin/Cargo.toml && mkdir -p ./dist && cp -p ./swc-plugin/target/wasm32-wasip1/release/gt_swc_plugin.wasm ./dist/gt_swc_plugin.wasm",
|
|
24
|
+
"build:swc-plugin:dev": "cargo build --target wasm32-wasip1 --manifest-path ./swc-plugin/Cargo.toml && mkdir -p ./dist && cp -p ./swc-plugin/target/wasm32-wasip1/debug/gt_swc_plugin.wasm ./dist/gt_swc_plugin-dev.wasm",
|
|
25
|
+
"build": "npm run build:swc-plugin && npm run transpile",
|
|
26
|
+
"build:clean": "rm -rf ./swc-plugin/target && rm -rf dist; npm run build",
|
|
25
27
|
"build:release": "npm run build:clean",
|
|
26
28
|
"release": "npm run build:clean && npm publish",
|
|
27
29
|
"release:alpha": "npm run build:clean && npm publish --tag alpha",
|
|
@@ -29,7 +31,9 @@
|
|
|
29
31
|
"release:latest": "npm run build:clean && npm publish --tag latest",
|
|
30
32
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\" \"__tests__/**/*.{js,ts,tsx}\"",
|
|
31
33
|
"lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" \"__tests__/**/*.{js,ts,tsx}\" --fix",
|
|
32
|
-
"test": "
|
|
34
|
+
"test": "npm run test:js && npm run test:rust",
|
|
35
|
+
"test:js": "vitest run",
|
|
36
|
+
"test:rust": "cargo test --manifest-path ./swc-plugin/Cargo.toml",
|
|
33
37
|
"test:watch": "vitest"
|
|
34
38
|
},
|
|
35
39
|
"repository": {
|
|
@@ -86,6 +90,14 @@
|
|
|
86
90
|
},
|
|
87
91
|
"./_load-dictionary": {
|
|
88
92
|
"default": "./dist/_load-dictionary.js"
|
|
93
|
+
},
|
|
94
|
+
"./compiler": {
|
|
95
|
+
"types": "./dist/compiler/index.d.ts",
|
|
96
|
+
"default": "./dist/compiler/index.js"
|
|
97
|
+
},
|
|
98
|
+
"./eslint-plugin": {
|
|
99
|
+
"types": "./dist/eslint-plugin/index.d.ts",
|
|
100
|
+
"default": "./dist/eslint-plugin/index.js"
|
|
89
101
|
}
|
|
90
102
|
},
|
|
91
103
|
"typesVersions": {
|
|
@@ -116,6 +128,12 @@
|
|
|
116
128
|
],
|
|
117
129
|
"_load-dictionary": [
|
|
118
130
|
"./dist/_load-dictionary.d.ts"
|
|
131
|
+
],
|
|
132
|
+
"compiler": [
|
|
133
|
+
"./dist/compiler/index.d.ts"
|
|
134
|
+
],
|
|
135
|
+
"eslint-plugin": [
|
|
136
|
+
"./dist/eslint-plugin/index.d.ts"
|
|
119
137
|
]
|
|
120
138
|
}
|
|
121
139
|
},
|
|
@@ -148,6 +166,12 @@
|
|
|
148
166
|
],
|
|
149
167
|
"gt-next/_load-dictionary": [
|
|
150
168
|
"/dist/_load-dictionary"
|
|
169
|
+
],
|
|
170
|
+
"gt-next/compiler": [
|
|
171
|
+
"/dist/compiler"
|
|
172
|
+
],
|
|
173
|
+
"gt-next/eslint-plugin": [
|
|
174
|
+
"/dist/eslint-plugin"
|
|
151
175
|
]
|
|
152
176
|
}
|
|
153
177
|
},
|