react-native-intlayer 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.
@@ -1,3 +1,4 @@
1
+ import "./applyIntlayerPolyfill.js";
1
2
  import { intlayerPolyfill } from "./intlayerPolyfill.js";
2
3
  import { IntlayerProvider, IntlayerProviderProps } from "./intlayerProvider.js";
3
4
  import { IntlayerClientContext, IntlayerNode, IntlayerProviderContent, UseLocaleProps, UseLocaleResult, getDictionary, getIntlayer, localeInStorage, setLocaleInStorage, t, useDictionary, useDictionaryAsync, useDictionaryDynamic, useI18n, useIntl, useIntlayer, useIntlayerContext, useLoadDynamic, useLocale, useLocaleBase, useLocaleCookie, useLocaleStorage, useRewriteURL } from "react-intlayer";
@@ -1,3 +1,4 @@
1
+ import "./applyIntlayerPolyfill.js";
1
2
  import { IntlayerProviderProps as IntlayerProviderProps$1 } from "react-intlayer";
2
3
  /**
3
4
  * Props accepted by the React Native `IntlayerProvider`.
@@ -1 +1 @@
1
- {"version":3,"file":"intlayerProvider.d.ts","names":["IntlayerProviderPropsBase"],"sources":["../../src/intlayerProvider.tsx"],"mappings":";;;;;;;;YAeY,wBAAwB,KAClCA;;;;;;;;;;;;;;;;;;;;qBAuBW,qBAAgB,aAAA,SAG1B,0CAAqB,IAAA"}
1
+ {"version":3,"file":"intlayerProvider.d.ts","names":["IntlayerProviderPropsBase"],"sources":["../../src/intlayerProvider.tsx"],"mappings":";;;;;;;;;YAeY,wBAAwB,KAClCA;;;;;;;;;;;;;;;;;;;;qBAuBW,qBAAgB,aAAA,SAG1B,0CAAqB,IAAA"}
package/package.json CHANGED
@@ -1,27 +1,23 @@
1
1
  {
2
2
  "name": "react-native-intlayer",
3
- "version": "9.7.1",
3
+ "version": "9.7.3",
4
4
  "private": false,
5
5
  "description": "A React Native plugin for seamless internationalization (i18n), providing locale detection, redirection, and environment-based configuration",
6
6
  "keywords": [
7
- "intlayer",
8
7
  "data",
8
+ "i18n",
9
9
  "internationalization",
10
+ "intlayer",
11
+ "json",
10
12
  "multilingual",
11
- "i18n",
12
- "typescript",
13
13
  "react",
14
14
  "react-native",
15
- "json"
15
+ "typescript"
16
16
  ],
17
17
  "homepage": "https://intlayer.org",
18
18
  "bugs": {
19
19
  "url": "https://github.com/aymericzip/intlayer/issues"
20
20
  },
21
- "repository": {
22
- "type": "git",
23
- "url": "git+https://github.com/aymericzip/intlayer.git"
24
- },
25
21
  "license": "Apache-2.0",
26
22
  "author": {
27
23
  "name": "Aymeric PINEAU",
@@ -34,11 +30,44 @@
34
30
  "url": "https://github.com/aymericzip"
35
31
  }
36
32
  ],
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/aymericzip/intlayer.git"
36
+ },
37
+ "files": [
38
+ "./dist",
39
+ "./package.json"
40
+ ],
37
41
  "sideEffects": [
38
42
  "./src/applyIntlayerPolyfill.ts",
39
43
  "./dist/esm/applyIntlayerPolyfill.mjs",
40
44
  "./dist/cjs/applyIntlayerPolyfill.cjs"
41
45
  ],
46
+ "main": "dist/cjs/index.cjs",
47
+ "module": "dist/esm/index.mjs",
48
+ "types": "dist/types/index.d.ts",
49
+ "typesVersions": {
50
+ "*": {
51
+ ".": [
52
+ "./dist/types/index.d.ts"
53
+ ],
54
+ "format": [
55
+ "./dist/types/client/format/index.d.ts"
56
+ ],
57
+ "html": [
58
+ "./dist/types/html/index.d.ts"
59
+ ],
60
+ "markdown": [
61
+ "./dist/types/markdown/index.d.ts"
62
+ ],
63
+ "metro": [
64
+ "./dist/types/metro.d.ts"
65
+ ],
66
+ "package.json": [
67
+ "./package.json"
68
+ ]
69
+ }
70
+ },
42
71
  "exports": {
43
72
  ".": {
44
73
  "types": "./dist/types/index.d.ts",
@@ -67,44 +96,15 @@
67
96
  },
68
97
  "./package.json": "./package.json"
69
98
  },
70
- "main": "dist/cjs/index.cjs",
71
- "module": "dist/esm/index.mjs",
72
- "types": "dist/types/index.d.ts",
73
- "typesVersions": {
74
- "*": {
75
- ".": [
76
- "./dist/types/index.d.ts"
77
- ],
78
- "format": [
79
- "./dist/types/client/format/index.d.ts"
80
- ],
81
- "html": [
82
- "./dist/types/html/index.d.ts"
83
- ],
84
- "markdown": [
85
- "./dist/types/markdown/index.d.ts"
86
- ],
87
- "metro": [
88
- "./dist/types/metro.d.ts"
89
- ],
90
- "package.json": [
91
- "./package.json"
92
- ]
93
- }
94
- },
95
- "files": [
96
- "./dist",
97
- "./package.json"
98
- ],
99
99
  "scripts": {
100
100
  "build": "bun --bun tsdown --config tsdown.config.ts",
101
101
  "build:ci": "bun --bun tsdown --config tsdown.config.ts",
102
102
  "clean": "bun --bun rimraf ./dist .turbo",
103
103
  "dev": "bun --bun tsdown --config tsdown.config.ts --watch",
104
- "format": "bun --bun biome format . --check",
105
- "format:fix": "bun --bun biome format --write .",
106
- "lint": "bun --bun biome lint .",
107
- "lint:fix": "bun --bun biome lint --write .",
104
+ "format": "oxfmt --check .",
105
+ "format:fix": "oxfmt .",
106
+ "lint": "oxlint .",
107
+ "lint:fix": "oxlint --fix .",
108
108
  "prepublish": "cp -f ../../README.md ./README.md",
109
109
  "publish": "bun publish || true",
110
110
  "publish:canary": "bun publish --access public --tag canary || true",
@@ -115,11 +115,11 @@
115
115
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
116
116
  },
117
117
  "dependencies": {
118
- "@intlayer/config": "9.7.1",
119
- "@intlayer/core": "9.7.1",
120
- "@intlayer/engine": "9.7.1",
121
- "@intlayer/types": "9.7.1",
122
- "react-intlayer": "9.7.1"
118
+ "@intlayer/config": "9.7.3",
119
+ "@intlayer/core": "9.7.3",
120
+ "@intlayer/engine": "9.7.3",
121
+ "@intlayer/types": "9.7.3",
122
+ "react-intlayer": "9.7.3"
123
123
  },
124
124
  "devDependencies": {
125
125
  "@types/node": "^26",
@@ -130,8 +130,8 @@
130
130
  "expo": "58.0.22",
131
131
  "metro-resolver": "0.87.2",
132
132
  "react": ">=18.0.0",
133
- "rimraf": "6.1.3",
134
- "tsdown": "0.23.4",
133
+ "rimraf": "6.1.4",
134
+ "tsdown": "0.23.7",
135
135
  "typescript": "7.0.2",
136
136
  "vitest": "5.0.5"
137
137
  },