@intlayer/react-intl 9.7.1 → 9.7.3

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.
@@ -3,8 +3,8 @@
3
3
  import { IntlContext } from "./context.mjs";
4
4
  import { createIntlObject } from "./createIntlObject.mjs";
5
5
  import { useMemo } from "react";
6
- import { jsx } from "react/jsx-runtime";
7
6
  import { IntlayerProvider } from "react-intlayer";
7
+ import { jsx } from "react/jsx-runtime";
8
8
  import { log } from "@intlayer/config/built";
9
9
  import { CYAN } from "@intlayer/config/colors";
10
10
  import { colorize, getAppLogger } from "@intlayer/config/logger";
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { createIntlObject } from "./createIntlObject.mjs";
4
4
  import { useMemo } from "react";
5
- import { navigatePath } from "@intlayer/core/messageFormat";
6
5
  import { useDictionary as useDictionary$1, useLocale } from "react-intlayer";
6
+ import { navigatePath } from "@intlayer/core/messageFormat";
7
7
 
8
8
  // src/useDictionary.ts
9
9
  /**
@@ -1,5 +1,5 @@
1
- import { IntlShape } from "react-intl";
2
1
  import { LocalesValues } from "@intlayer/types/module_augmentation";
2
+ import { IntlShape } from "react-intl";
3
3
  /**
4
4
  * Builds an intlayer-backed `IntlShape` object for the given locale.
5
5
  *
@@ -1,8 +1,8 @@
1
- import { IntlShape, MessageDescriptor, PrimitiveType } from "react-intl";
2
- import { DictionaryKeys } from "@intlayer/types/module_augmentation";
3
1
  import { GetNestingResult } from "@intlayer/core/interpreter";
4
2
  import { ValidDotPathsFor } from "@intlayer/core/transpiler";
3
+ import { DictionaryKeys } from "@intlayer/types/module_augmentation";
5
4
  import { ReactNode } from "react";
5
+ import { IntlShape, MessageDescriptor, PrimitiveType } from "react-intl";
6
6
  /**
7
7
  * The interpreter-resolved content type at dot-path `P` of dictionary `N` —
8
8
  * the same type strength as the base `useIntlayer` hook.
@@ -1,5 +1,5 @@
1
- import { DictionaryKeys } from "@intlayer/types/module_augmentation";
2
1
  import { ValidDotPathsFor } from "@intlayer/core/transpiler";
2
+ import { DictionaryKeys } from "@intlayer/types/module_augmentation";
3
3
  /**
4
4
  * Every valid react-intl message id: `<dictionaryKey>.<dotPath>`, where the
5
5
  * first segment designates the intlayer dictionary. Falls back to `string`
package/package.json CHANGED
@@ -1,23 +1,19 @@
1
1
  {
2
2
  "name": "@intlayer/react-intl",
3
- "version": "9.7.1",
3
+ "version": "9.7.3",
4
4
  "private": false,
5
5
  "description": "react-intl API adapter for intlayer — drop-in compatibility layer",
6
6
  "keywords": [
7
- "intlayer",
8
- "i18next",
9
- "i18n",
10
7
  "adapter",
11
- "compatibility"
8
+ "compatibility",
9
+ "i18n",
10
+ "i18next",
11
+ "intlayer"
12
12
  ],
13
13
  "homepage": "https://intlayer.org",
14
14
  "bugs": {
15
15
  "url": "https://github.com/aymericzip/intlayer/issues"
16
16
  },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/aymericzip/intlayer.git"
20
- },
21
17
  "license": "Apache-2.0",
22
18
  "author": {
23
19
  "name": "Aymeric PINEAU",
@@ -30,7 +26,25 @@
30
26
  "url": "https://github.com/aymericzip"
31
27
  }
32
28
  ],
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/aymericzip/intlayer.git"
32
+ },
33
+ "files": [
34
+ "./dist",
35
+ "./package.json"
36
+ ],
33
37
  "sideEffects": false,
38
+ "main": "dist/esm/index.mjs",
39
+ "module": "dist/esm/index.mjs",
40
+ "types": "dist/types/index.d.ts",
41
+ "typesVersions": {
42
+ "*": {
43
+ "plugin": [
44
+ "./dist/types/plugin/index.d.ts"
45
+ ]
46
+ }
47
+ },
34
48
  "exports": {
35
49
  ".": {
36
50
  "types": "./dist/types/index.d.ts",
@@ -42,29 +56,15 @@
42
56
  },
43
57
  "./package.json": "./package.json"
44
58
  },
45
- "main": "dist/esm/index.mjs",
46
- "module": "dist/esm/index.mjs",
47
- "types": "dist/types/index.d.ts",
48
- "typesVersions": {
49
- "*": {
50
- "plugin": [
51
- "./dist/types/plugin/index.d.ts"
52
- ]
53
- }
54
- },
55
- "files": [
56
- "./dist",
57
- "./package.json"
58
- ],
59
59
  "scripts": {
60
60
  "build": "bun --bun tsdown --config tsdown.config.ts",
61
61
  "build:ci": "bun --bun tsdown --config tsdown.config.ts",
62
62
  "clean": "bun --bun rimraf ./dist .turbo",
63
63
  "dev": "bun --bun tsdown --config tsdown.config.ts --watch",
64
- "format": "bun --bun biome format . --check",
65
- "format:fix": "bun --bun biome format --write .",
66
- "lint": "bun --bun biome lint .",
67
- "lint:fix": "bun --bun biome lint --write .",
64
+ "format": "oxfmt --check .",
65
+ "format:fix": "oxfmt .",
66
+ "lint": "oxlint .",
67
+ "lint:fix": "oxlint --fix .",
68
68
  "prepublish": "cp -f ../../README.md ./README.md",
69
69
  "publish": "bun publish || true",
70
70
  "publish:canary": "bun publish --access public --tag canary || true",
@@ -75,13 +75,13 @@
75
75
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
76
76
  },
77
77
  "dependencies": {
78
- "@intlayer/config": "9.7.1",
79
- "@intlayer/core": "9.7.1",
80
- "@intlayer/dictionaries-entry": "9.7.1",
81
- "@intlayer/engine": "9.7.1",
82
- "@intlayer/types": "9.7.1",
83
- "react-intlayer": "9.7.1",
84
- "vite-intlayer": "9.7.1"
78
+ "@intlayer/config": "9.7.3",
79
+ "@intlayer/core": "9.7.3",
80
+ "@intlayer/dictionaries-entry": "9.7.3",
81
+ "@intlayer/engine": "9.7.3",
82
+ "@intlayer/types": "9.7.3",
83
+ "react-intlayer": "9.7.3",
84
+ "vite-intlayer": "9.7.3"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@types/node": "^26",
@@ -90,10 +90,10 @@
90
90
  "@utils/ts-config-types": "1.0.4",
91
91
  "@utils/tsdown-config": "1.0.4",
92
92
  "react-intl": "^12.1.6",
93
- "rimraf": "6.1.3",
94
- "tsdown": "0.23.4",
93
+ "rimraf": "6.1.4",
94
+ "tsdown": "0.23.7",
95
95
  "typescript": "7.0.2",
96
- "vite": "8.3.5",
96
+ "vite": "8.3.7",
97
97
  "vitest": "5.1.0"
98
98
  },
99
99
  "peerDependencies": {