cloudflare-next-intl 0.8.4 → 0.8.6

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/package.json CHANGED
@@ -1,275 +1,280 @@
1
1
  {
2
- "name": "cloudflare-next-intl",
3
- "version": "0.8.4",
4
- "description": "Optimized Next Intl Package Special for App Router and Cloudflare",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "sideEffects": false,
8
- "bin": {
9
- "cfni-db-codegen": "bin/db_codegen.mjs"
10
- },
11
- "files": [
12
- "dist",
13
- "bin",
14
- "supabase",
15
- "LICENSE",
16
- "README.md",
17
- "llms.txt"
18
- ],
19
- "exports": {
20
- ".": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/index.js"
23
- },
24
- "./client": {
25
- "types": "./dist/src/client/index.d.ts",
26
- "import": "./dist/src/client/index.js"
27
- },
28
- "./server": {
29
- "types": "./dist/src/server/index.d.ts",
30
- "import": "./dist/src/server/index.js"
31
- },
32
- "./middleware": {
33
- "types": "./dist/src/config/middleware.d.ts",
34
- "import": "./dist/src/config/middleware.js"
35
- },
36
- "./setIntlConfig": {
37
- "types": "./dist/src/config/init_config.d.ts",
38
- "import": "./dist/src/config/init_config.js"
39
- },
40
- "./serverProvider": {
41
- "types": "./dist/src/server/components/server_provider.d.ts",
42
- "import": "./dist/src/server/components/server_provider.js"
43
- },
44
- "./serverProviderStatic": {
45
- "types": "./dist/src/server/components/server_provider_static.d.ts",
46
- "import": "./dist/src/server/components/server_provider_static.js"
47
- },
48
- "./Link": {
49
- "types": "./dist/src/server/components/link.d.ts",
50
- "import": "./dist/src/server/components/link.js"
51
- },
52
- "./IntlHelperScript": {
53
- "types": "./dist/src/server/components/helper_script.d.ts",
54
- "import": "./dist/src/server/components/helper_script.js"
55
- },
56
- "./LocaleLink": {
57
- "types": "./dist/src/client/components/locale_link.d.ts",
58
- "import": "./dist/src/client/components/locale_link.js"
59
- },
60
- "./usePathname": {
61
- "types": "./dist/src/client/hooks/use_path_name.d.ts",
62
- "import": "./dist/src/client/hooks/use_path_name.js"
63
- },
64
- "./metadata": {
65
- "types": "./dist/src/general/metadata.d.ts",
66
- "import": "./dist/src/general/metadata.js"
67
- },
68
- "./setCookieClient": {
69
- "types": "./dist/src/client/functions/set_cookie.d.ts",
70
- "import": "./dist/src/client/functions/set_cookie.js"
71
- },
72
- "./getCookieClient": {
73
- "types": "./dist/src/client/functions/get_cookie.d.ts",
74
- "import": "./dist/src/client/functions/get_cookie.js"
75
- },
76
- "./localeStaticParams": {
77
- "types": "./dist/src/server/functions/locale_static_params.d.ts",
78
- "import": "./dist/src/server/functions/locale_static_params.js"
79
- },
80
- "./use": {
81
- "react-server": {
82
- "types": "./dist/src/server/functions/use_functions.d.ts",
83
- "import": "./dist/src/server/functions/use_functions.js"
84
- },
85
- "default": {
86
- "types": "./dist/src/client/hooks/client_hooks.d.ts",
87
- "import": "./dist/src/client/hooks/client_hooks.js"
88
- }
89
- },
90
- "./ThemeSwitcher": {
91
- "types": "./dist/src/theme_switcher/components/theme_switcher.d.ts",
92
- "import": "./dist/src/theme_switcher/components/theme_switcher.js"
93
- },
94
- "./firebaseAuthClient": {
95
- "types": "./dist/src/firebase_auth/client/firebase_client.d.ts",
96
- "import": "./dist/src/firebase_auth/client/firebase_client.js"
97
- },
98
- "./firebaseAuthClientProvider": {
99
- "types": "./dist/src/firebase_auth/client/auth_user_provider.d.ts",
100
- "import": "./dist/src/firebase_auth/client/auth_user_provider.js"
101
- },
102
- "./firebaseAuthServerProvider": {
103
- "types": "./dist/src/firebase_auth/server/auth_user_server_provider.d.ts",
104
- "import": "./dist/src/firebase_auth/server/auth_user_server_provider.js"
105
- },
106
- "./useFirebaseAuthUser": {
107
- "react-server": {
108
- "types": "./dist/src/firebase_auth/server/use_auth_user_server.d.ts",
109
- "import": "./dist/src/firebase_auth/server/use_auth_user_server.js"
110
- },
111
- "default": {
112
- "types": "./dist/src/firebase_auth/client/use_auth_user.d.ts",
113
- "import": "./dist/src/firebase_auth/client/use_auth_user.js"
114
- }
115
- },
116
- "./getFirebaseAuthUser": {
117
- "types": "./dist/src/firebase_auth/server/use_auth_user_server.d.ts",
118
- "import": "./dist/src/firebase_auth/server/use_auth_user_server.js"
119
- },
120
- "./firebaseAuthActions": {
121
- "types": "./dist/src/firebase_auth/client/auth_actions.d.ts",
122
- "import": "./dist/src/firebase_auth/client/auth_actions.js"
123
- },
124
- "./firebaseAuthMiddleware": {
125
- "types": "./dist/src/firebase_auth/middleware/update_session.d.ts",
126
- "import": "./dist/src/firebase_auth/middleware/update_session.js"
127
- },
128
- "./cookieConsent": {
129
- "types": "./dist/src/cookie_consent/index.d.ts",
130
- "import": "./dist/src/cookie_consent/index.js"
131
- },
132
- "./CookieConsentProvider": {
133
- "types": "./dist/src/cookie_consent/client/cookie_consent_provider.d.ts",
134
- "import": "./dist/src/cookie_consent/client/cookie_consent_provider.js"
135
- },
136
- "./useCookieConsent": {
137
- "types": "./dist/src/cookie_consent/client/use_cookie_consent.d.ts",
138
- "import": "./dist/src/cookie_consent/client/use_cookie_consent.js"
139
- },
140
- "./CookieConsentDialog": {
141
- "types": "./dist/src/cookie_consent/client/components/cookie_consent_dialog.d.ts",
142
- "import": "./dist/src/cookie_consent/client/components/cookie_consent_dialog.js"
143
- },
144
- "./PrivacyPolicyUpdateDialog": {
145
- "types": "./dist/src/cookie_consent/client/components/privacy_policy_update_dialog.d.ts",
146
- "import": "./dist/src/cookie_consent/client/components/privacy_policy_update_dialog.js"
147
- },
148
- "./cookieConsentAnalytics": {
149
- "types": "./dist/src/cookie_consent/client/components/cookie_consent_analytics.d.ts",
150
- "import": "./dist/src/cookie_consent/client/components/cookie_consent_analytics.js"
151
- },
152
- "./errorHandling": {
153
- "types": "./dist/src/error_handling/index.d.ts",
154
- "import": "./dist/src/error_handling/index.js"
155
- },
156
- "./installConsoleErrorOverride": {
157
- "types": "./dist/src/error_handling/install_console_error_override.d.ts",
158
- "import": "./dist/src/error_handling/install_console_error_override.js"
159
- },
160
- "./installGlobalErrorOverride": {
161
- "types": "./dist/src/error_handling/install_global_error_override.d.ts",
162
- "import": "./dist/src/error_handling/install_global_error_override.js"
163
- },
164
- "./stringifyUnknown": {
165
- "types": "./dist/src/error_handling/stringify_unknown.d.ts",
166
- "import": "./dist/src/error_handling/stringify_unknown.js"
167
- },
168
- "./formatErrorMessage": {
169
- "types": "./dist/src/error_handling/format_error_message.d.ts",
170
- "import": "./dist/src/error_handling/format_error_message.js"
171
- },
172
- "./defaultIgnoredConsoleErrors": {
173
- "types": "./dist/src/error_handling/default_ignored_console_errors.d.ts",
174
- "import": "./dist/src/error_handling/default_ignored_console_errors.js"
175
- },
176
- "./createServerErrorAction": {
177
- "types": "./dist/src/error_handling/create_server_error_action.d.ts",
178
- "import": "./dist/src/error_handling/create_server_error_action.js"
179
- },
180
- "./db": {
181
- "types": "./dist/src/db/index.d.ts",
182
- "import": "./dist/src/db/index.js"
183
- },
184
- "./dbHelpers": {
185
- "types": "./dist/src/db/helpers.d.ts",
186
- "import": "./dist/src/db/helpers.js"
187
- },
188
- "./dbTesting": {
189
- "types": "./dist/src/db/testing.d.ts",
190
- "import": "./dist/src/db/testing.js"
191
- }
192
- },
193
- "scripts": {
194
- "test": "vitest run --coverage",
195
- "bench": "vitest bench --run",
196
- "build": "tsc"
197
- },
198
- "repository": {
199
- "type": "git",
200
- "url": "git+https://github.com/demian-ilnytskyi/cloudflare-next-intl.git"
201
- },
202
- "keywords": [
203
- "nextjs",
204
- "i18n",
205
- "internationalization",
206
- "localization",
207
- "multilingual",
208
- "translation",
209
- "language",
210
- "optimized",
211
- "performance",
212
- "bundle-size",
213
- "fast",
214
- "efficient",
215
- "app-router",
216
- "server-components",
217
- "ssr",
218
- "ssg",
219
- "tree-shaking",
220
- "dynamic-imports",
221
- "react",
222
- "next-intl",
223
- "messages",
224
- "formatting",
225
- "icu"
226
- ],
227
- "author": "Demian Ilnutskyi",
228
- "license": "MIT",
229
- "bugs": {
230
- "url": "https://github.com/demian-ilnytskyi/cloudflare-next-intl/issues"
231
- },
232
- "homepage": "https://github.com/demian-ilnytskyi/cloudflare-next-intl#readme",
233
- "dependencies": {
234
- "@microsoft/clarity": "^1.0.2",
235
- "@supabase/supabase-js": "^2.112.3",
236
- "drizzle-orm": "^0.45.2",
237
- "firebase": "^12.17.0",
238
- "jose": "^6.2.8",
239
- "pg": "^8.23.0"
240
- },
241
- "peerDependencies": {
242
- "next": ">=12.0.0",
243
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0",
244
- "typescript": ">=5.0.0"
245
- },
246
- "peerDependenciesMeta": {
247
- "typescript": {
248
- "optional": true
249
- }
250
- },
251
- "devDependencies": {
252
- "@eslint/eslintrc": "^3",
253
- "@eslint/js": "^9.27.0",
254
- "@testing-library/dom": "^10.4.1",
255
- "@testing-library/jest-dom": "^7.0.0",
256
- "@testing-library/react": "^16.3.2",
257
- "@types/node": "^20.14.5",
258
- "@types/pg": "^8.23.1",
259
- "@types/react": "^19.0.0",
260
- "@types/react-dom": "^19.0.0",
261
- "@vitest/coverage-v8": "^3.2.7",
262
- "drizzle-kit": "^0.31.10",
263
- "eslint": "^9.28.0",
264
- "eslint-config-next": "15.3.3",
265
- "eslint-config-prettier": "^10.1.2",
266
- "jsdom": "^29.1.1",
267
- "next": "^15.3.0",
268
- "react": "19.2.0",
269
- "react-dom": "19.2.0",
270
- "tsup": "^8.5.1",
271
- "typescript": "^5.5.3",
272
- "typescript-eslint": "^8.33.1",
273
- "vitest": "^3.0.8"
274
- }
2
+ "name": "cloudflare-next-intl",
3
+ "version": "0.8.6",
4
+ "description": "Optimized Next Intl Package Special for App Router and Cloudflare",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "sideEffects": false,
8
+ "bin": {
9
+ "cfni-db-codegen": "bin/db_codegen.mjs",
10
+ "cfni-db-install-exec": "bin/db_install_exec.mjs"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "bin",
15
+ "supabase",
16
+ "LICENSE",
17
+ "README.md",
18
+ "llms.txt"
19
+ ],
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.js"
24
+ },
25
+ "./client": {
26
+ "types": "./dist/src/client/index.d.ts",
27
+ "import": "./dist/src/client/index.js"
28
+ },
29
+ "./server": {
30
+ "types": "./dist/src/server/index.d.ts",
31
+ "import": "./dist/src/server/index.js"
32
+ },
33
+ "./middleware": {
34
+ "types": "./dist/src/config/middleware.d.ts",
35
+ "import": "./dist/src/config/middleware.js"
36
+ },
37
+ "./setIntlConfig": {
38
+ "types": "./dist/src/config/init_config.d.ts",
39
+ "import": "./dist/src/config/init_config.js"
40
+ },
41
+ "./serverProvider": {
42
+ "types": "./dist/src/server/components/server_provider.d.ts",
43
+ "import": "./dist/src/server/components/server_provider.js"
44
+ },
45
+ "./serverProviderStatic": {
46
+ "types": "./dist/src/server/components/server_provider_static.d.ts",
47
+ "import": "./dist/src/server/components/server_provider_static.js"
48
+ },
49
+ "./Link": {
50
+ "types": "./dist/src/server/components/link.d.ts",
51
+ "import": "./dist/src/server/components/link.js"
52
+ },
53
+ "./IntlHelperScript": {
54
+ "types": "./dist/src/server/components/helper_script.d.ts",
55
+ "import": "./dist/src/server/components/helper_script.js"
56
+ },
57
+ "./LocaleLink": {
58
+ "types": "./dist/src/client/components/locale_link.d.ts",
59
+ "import": "./dist/src/client/components/locale_link.js"
60
+ },
61
+ "./usePathname": {
62
+ "types": "./dist/src/client/hooks/use_path_name.d.ts",
63
+ "import": "./dist/src/client/hooks/use_path_name.js"
64
+ },
65
+ "./metadata": {
66
+ "types": "./dist/src/general/metadata.d.ts",
67
+ "import": "./dist/src/general/metadata.js"
68
+ },
69
+ "./setCookieClient": {
70
+ "types": "./dist/src/client/functions/set_cookie.d.ts",
71
+ "import": "./dist/src/client/functions/set_cookie.js"
72
+ },
73
+ "./getCookieClient": {
74
+ "types": "./dist/src/client/functions/get_cookie.d.ts",
75
+ "import": "./dist/src/client/functions/get_cookie.js"
76
+ },
77
+ "./localeStaticParams": {
78
+ "types": "./dist/src/server/functions/locale_static_params.d.ts",
79
+ "import": "./dist/src/server/functions/locale_static_params.js"
80
+ },
81
+ "./use": {
82
+ "react-server": {
83
+ "types": "./dist/src/server/functions/use_functions.d.ts",
84
+ "import": "./dist/src/server/functions/use_functions.js"
85
+ },
86
+ "default": {
87
+ "types": "./dist/src/client/hooks/client_hooks.d.ts",
88
+ "import": "./dist/src/client/hooks/client_hooks.js"
89
+ }
90
+ },
91
+ "./ThemeSwitcher": {
92
+ "types": "./dist/src/theme_switcher/components/theme_switcher.d.ts",
93
+ "import": "./dist/src/theme_switcher/components/theme_switcher.js"
94
+ },
95
+ "./firebaseAuthClient": {
96
+ "types": "./dist/src/firebase_auth/client/firebase_client.d.ts",
97
+ "import": "./dist/src/firebase_auth/client/firebase_client.js"
98
+ },
99
+ "./firebaseAuthClientProvider": {
100
+ "types": "./dist/src/firebase_auth/client/auth_user_provider.d.ts",
101
+ "import": "./dist/src/firebase_auth/client/auth_user_provider.js"
102
+ },
103
+ "./firebaseAuthServerProvider": {
104
+ "types": "./dist/src/firebase_auth/server/auth_user_server_provider.d.ts",
105
+ "import": "./dist/src/firebase_auth/server/auth_user_server_provider.js"
106
+ },
107
+ "./useFirebaseAuthUser": {
108
+ "react-server": {
109
+ "types": "./dist/src/firebase_auth/server/use_auth_user_server.d.ts",
110
+ "import": "./dist/src/firebase_auth/server/use_auth_user_server.js"
111
+ },
112
+ "default": {
113
+ "types": "./dist/src/firebase_auth/client/use_auth_user.d.ts",
114
+ "import": "./dist/src/firebase_auth/client/use_auth_user.js"
115
+ }
116
+ },
117
+ "./getFirebaseAuthUser": {
118
+ "types": "./dist/src/firebase_auth/server/use_auth_user_server.d.ts",
119
+ "import": "./dist/src/firebase_auth/server/use_auth_user_server.js"
120
+ },
121
+ "./firebaseAuthActions": {
122
+ "types": "./dist/src/firebase_auth/client/auth_actions.d.ts",
123
+ "import": "./dist/src/firebase_auth/client/auth_actions.js"
124
+ },
125
+ "./firebaseAuthMiddleware": {
126
+ "types": "./dist/src/firebase_auth/middleware/update_session.d.ts",
127
+ "import": "./dist/src/firebase_auth/middleware/update_session.js"
128
+ },
129
+ "./cookieConsent": {
130
+ "types": "./dist/src/cookie_consent/index.d.ts",
131
+ "import": "./dist/src/cookie_consent/index.js"
132
+ },
133
+ "./CookieConsentProvider": {
134
+ "types": "./dist/src/cookie_consent/client/cookie_consent_provider.d.ts",
135
+ "import": "./dist/src/cookie_consent/client/cookie_consent_provider.js"
136
+ },
137
+ "./useCookieConsent": {
138
+ "types": "./dist/src/cookie_consent/client/use_cookie_consent.d.ts",
139
+ "import": "./dist/src/cookie_consent/client/use_cookie_consent.js"
140
+ },
141
+ "./CookieConsentDialog": {
142
+ "types": "./dist/src/cookie_consent/client/components/cookie_consent_dialog.d.ts",
143
+ "import": "./dist/src/cookie_consent/client/components/cookie_consent_dialog.js"
144
+ },
145
+ "./PrivacyPolicyUpdateDialog": {
146
+ "types": "./dist/src/cookie_consent/client/components/privacy_policy_update_dialog.d.ts",
147
+ "import": "./dist/src/cookie_consent/client/components/privacy_policy_update_dialog.js"
148
+ },
149
+ "./cookieConsentAnalytics": {
150
+ "types": "./dist/src/cookie_consent/client/components/cookie_consent_analytics.d.ts",
151
+ "import": "./dist/src/cookie_consent/client/components/cookie_consent_analytics.js"
152
+ },
153
+ "./errorHandling": {
154
+ "types": "./dist/src/error_handling/index.d.ts",
155
+ "import": "./dist/src/error_handling/index.js"
156
+ },
157
+ "./installConsoleErrorOverride": {
158
+ "types": "./dist/src/error_handling/install_console_error_override.d.ts",
159
+ "import": "./dist/src/error_handling/install_console_error_override.js"
160
+ },
161
+ "./installGlobalErrorOverride": {
162
+ "types": "./dist/src/error_handling/install_global_error_override.d.ts",
163
+ "import": "./dist/src/error_handling/install_global_error_override.js"
164
+ },
165
+ "./stringifyUnknown": {
166
+ "types": "./dist/src/error_handling/stringify_unknown.d.ts",
167
+ "import": "./dist/src/error_handling/stringify_unknown.js"
168
+ },
169
+ "./formatErrorMessage": {
170
+ "types": "./dist/src/error_handling/format_error_message.d.ts",
171
+ "import": "./dist/src/error_handling/format_error_message.js"
172
+ },
173
+ "./defaultIgnoredConsoleErrors": {
174
+ "types": "./dist/src/error_handling/default_ignored_console_errors.d.ts",
175
+ "import": "./dist/src/error_handling/default_ignored_console_errors.js"
176
+ },
177
+ "./createServerErrorAction": {
178
+ "types": "./dist/src/error_handling/create_server_error_action.d.ts",
179
+ "import": "./dist/src/error_handling/create_server_error_action.js"
180
+ },
181
+ "./db": {
182
+ "types": "./dist/src/db/index.d.ts",
183
+ "import": "./dist/src/db/index.js"
184
+ },
185
+ "./dbHelpers": {
186
+ "types": "./dist/src/db/helpers.d.ts",
187
+ "import": "./dist/src/db/helpers.js"
188
+ },
189
+ "./dbTesting": {
190
+ "types": "./dist/src/db/testing.d.ts",
191
+ "import": "./dist/src/db/testing.js"
192
+ },
193
+ "./dbSchema": {
194
+ "types": "./dist/src/db/schema.d.ts",
195
+ "import": "./dist/src/db/schema.js"
196
+ }
197
+ },
198
+ "scripts": {
199
+ "test": "vitest run --coverage",
200
+ "bench": "vitest bench --run",
201
+ "build": "tsc"
202
+ },
203
+ "repository": {
204
+ "type": "git",
205
+ "url": "git+https://github.com/demian-ilnytskyi/cloudflare-next-intl.git"
206
+ },
207
+ "keywords": [
208
+ "nextjs",
209
+ "i18n",
210
+ "internationalization",
211
+ "localization",
212
+ "multilingual",
213
+ "translation",
214
+ "language",
215
+ "optimized",
216
+ "performance",
217
+ "bundle-size",
218
+ "fast",
219
+ "efficient",
220
+ "app-router",
221
+ "server-components",
222
+ "ssr",
223
+ "ssg",
224
+ "tree-shaking",
225
+ "dynamic-imports",
226
+ "react",
227
+ "next-intl",
228
+ "messages",
229
+ "formatting",
230
+ "icu"
231
+ ],
232
+ "author": "Demian Ilnutskyi",
233
+ "license": "MIT",
234
+ "bugs": {
235
+ "url": "https://github.com/demian-ilnytskyi/cloudflare-next-intl/issues"
236
+ },
237
+ "homepage": "https://github.com/demian-ilnytskyi/cloudflare-next-intl#readme",
238
+ "dependencies": {
239
+ "@microsoft/clarity": "^1.0.2",
240
+ "@supabase/supabase-js": "^2.112.3",
241
+ "drizzle-orm": "^0.45.2",
242
+ "firebase": "^12.17.0",
243
+ "jose": "^6.2.8",
244
+ "pg": "^8.23.0"
245
+ },
246
+ "peerDependencies": {
247
+ "next": ">=12.0.0",
248
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0",
249
+ "typescript": ">=5.0.0"
250
+ },
251
+ "peerDependenciesMeta": {
252
+ "typescript": {
253
+ "optional": true
254
+ }
255
+ },
256
+ "devDependencies": {
257
+ "@eslint/eslintrc": "^3",
258
+ "@eslint/js": "^9.27.0",
259
+ "@testing-library/dom": "^10.4.1",
260
+ "@testing-library/jest-dom": "^7.0.0",
261
+ "@testing-library/react": "^16.3.2",
262
+ "@types/node": "^20.14.5",
263
+ "@types/pg": "^8.23.1",
264
+ "@types/react": "^19.0.0",
265
+ "@types/react-dom": "^19.0.0",
266
+ "@vitest/coverage-v8": "^3.2.7",
267
+ "drizzle-kit": "^0.31.10",
268
+ "eslint": "^9.28.0",
269
+ "eslint-config-next": "15.3.3",
270
+ "eslint-config-prettier": "^10.1.2",
271
+ "jsdom": "^29.1.1",
272
+ "next": "^15.3.0",
273
+ "react": "19.2.0",
274
+ "react-dom": "19.2.0",
275
+ "tsup": "^8.5.1",
276
+ "typescript": "^5.5.3",
277
+ "typescript-eslint": "^8.33.1",
278
+ "vitest": "^3.0.8"
279
+ }
275
280
  }