next-intl 2.19.1 → 2.19.2-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.
@@ -0,0 +1 @@
1
+ export { default } from '../Link';
@@ -0,0 +1 @@
1
+ export { default } from './Link';
@@ -0,0 +1 @@
1
+ export { default } from '../Link';
@@ -0,0 +1,6 @@
1
+ 'use client';
2
+ // Allows to import 'next-intl/link' as a Client Component in
3
+ // Server Components as a stopgap solution until full RSC
4
+ // support is available for `next-intl/link`.
5
+ export { default } from '../Link';
6
+ //# sourceMappingURL=Link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../../src/link/react-server/Link.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,6DAA6D;AAC7D,yDAAyD;AACzD,6CAA6C;AAC7C,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ export { default } from './Link';
@@ -0,0 +1,2 @@
1
+ export { default } from './Link';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/link/react-server/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intl",
3
- "version": "2.19.1",
3
+ "version": "2.19.2-alpha.1",
4
4
  "sideEffects": false,
5
5
  "author": "Jan Amann <jan@amann.work>",
6
6
  "description": "A minimal, but complete solution for internationalization in Next.js apps.",
@@ -10,16 +10,6 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/amannn/next-intl"
12
12
  },
13
- "scripts": {
14
- "build": "pnpm build:default && pnpm build:rsc",
15
- "build:default": "rm -rf dist && dts build",
16
- "build:rsc": "tsc && rm -rf dist/test",
17
- "test": "TZ=Europe/Berlin vitest",
18
- "lint": "eslint src test && tsc --noEmit",
19
- "prepublishOnly": "CI=true turbo test && turbo lint && turbo build && cp ../../README.md .",
20
- "postpublish": "git checkout . && rm ./README.md",
21
- "size": "size-limit"
22
- },
23
13
  "main": "dist/index.js",
24
14
  "module": "dist/next-intl.esm.js",
25
15
  "typings": "dist/index.d.ts",
@@ -36,6 +26,7 @@
36
26
  },
37
27
  "./link": {
38
28
  "types": "./link.d.ts",
29
+ "react-server": "./dist/src/link/react-server/index.js",
39
30
  "default": "./dist/src/link/index.js"
40
31
  },
41
32
  "./middleware": {
@@ -103,5 +94,12 @@
103
94
  "engines": {
104
95
  "node": ">=10"
105
96
  },
106
- "gitHead": "2ff343d25bb2af0309ce2f21ee95ca09ecd3db7a"
107
- }
97
+ "scripts": {
98
+ "build": "pnpm build:default && pnpm build:rsc",
99
+ "build:default": "rm -rf dist && dts build",
100
+ "build:rsc": "tsc && rm -rf dist/test",
101
+ "test": "TZ=Europe/Berlin vitest",
102
+ "lint": "eslint src test && tsc --noEmit",
103
+ "size": "size-limit"
104
+ }
105
+ }
@@ -0,0 +1,6 @@
1
+ 'use client';
2
+
3
+ // Allows to import 'next-intl/link' as a Client Component in
4
+ // Server Components as a stopgap solution until full RSC
5
+ // support is available for `next-intl/link`.
6
+ export {default} from '../Link';
@@ -0,0 +1 @@
1
+ export {default} from './Link';