@formatjs/intl-locale 3.0.3 → 3.0.4
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/BUILD +132 -0
- package/CHANGELOG.md +436 -0
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/get_internal_slots.ts +15 -0
- package/index.ts +529 -0
- package/package.json +4 -4
- package/polyfill-force.ts +8 -0
- package/polyfill.ts +10 -0
- package/should-polyfill.ts +14 -0
- package/tests/index.test.ts +18 -0
- package/tests/likely-subtags.test.ts +108 -0
- package/tests/minimize.test.ts +35 -0
- package/tsconfig.json +5 -0
- package/get_internal_slots.d.ts +0 -3
- package/get_internal_slots.d.ts.map +0 -1
- package/get_internal_slots.js +0 -14
- package/index.d.ts +0 -49
- package/index.d.ts.map +0 -1
- package/index.js +0 -394
- package/lib/get_internal_slots.d.ts +0 -3
- package/lib/get_internal_slots.d.ts.map +0 -1
- package/lib/get_internal_slots.js +0 -11
- package/lib/index.d.ts +0 -49
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -391
- package/lib/polyfill-force.d.ts +0 -2
- package/lib/polyfill-force.d.ts.map +0 -1
- package/lib/polyfill-force.js +0 -7
- package/lib/polyfill.d.ts +0 -2
- package/lib/polyfill.d.ts.map +0 -1
- package/lib/polyfill.js +0 -10
- package/lib/should-polyfill.d.ts +0 -2
- package/lib/should-polyfill.d.ts.map +0 -1
- package/lib/should-polyfill.js +0 -14
- package/polyfill-force.d.ts +0 -2
- package/polyfill-force.d.ts.map +0 -1
- package/polyfill-force.js +0 -9
- package/polyfill.d.ts +0 -2
- package/polyfill.d.ts.map +0 -1
- package/polyfill.iife.js +0 -6468
- package/polyfill.js +0 -12
- package/should-polyfill.d.ts +0 -2
- package/should-polyfill.d.ts.map +0 -1
- package/should-polyfill.js +0 -18
package/BUILD
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
|
|
2
|
+
load("@aspect_rules_esbuild//esbuild:defs.bzl", "esbuild")
|
|
3
|
+
load("@aspect_rules_js//npm/private:npm_package.bzl", "npm_package")
|
|
4
|
+
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
|
|
5
|
+
load("@npm//:defs.bzl", "npm_link_all_packages")
|
|
6
|
+
load("@npm//:test262-harness/package_json.bzl", test262_harness_bin = "bin")
|
|
7
|
+
load("//tools:index.bzl", "check_format", "package_json_test", "ts_compile")
|
|
8
|
+
load("//tools:jest.bzl", "jest_test")
|
|
9
|
+
|
|
10
|
+
npm_link_all_packages(name = "node_modules")
|
|
11
|
+
|
|
12
|
+
PACKAGE_NAME = "intl-locale"
|
|
13
|
+
|
|
14
|
+
npm_package(
|
|
15
|
+
name = PACKAGE_NAME,
|
|
16
|
+
srcs = [
|
|
17
|
+
"LICENSE.md",
|
|
18
|
+
"README.md",
|
|
19
|
+
"package.json",
|
|
20
|
+
":dist",
|
|
21
|
+
# polyfill-library uses this
|
|
22
|
+
"polyfill.iife.js",
|
|
23
|
+
],
|
|
24
|
+
package = "@formatjs/%s" % PACKAGE_NAME,
|
|
25
|
+
visibility = ["//visibility:public"],
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
SRCS = glob(["*.ts"])
|
|
29
|
+
|
|
30
|
+
SRC_DEPS = [
|
|
31
|
+
":node_modules/@formatjs/ecma402-abstract",
|
|
32
|
+
":node_modules/@formatjs/intl-getcanonicallocales",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
ts_compile(
|
|
36
|
+
name = "dist",
|
|
37
|
+
srcs = SRCS,
|
|
38
|
+
package = "@formatjs/%s" % PACKAGE_NAME,
|
|
39
|
+
skip_esm = False,
|
|
40
|
+
deps = SRC_DEPS,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
jest_test(
|
|
44
|
+
name = "unit",
|
|
45
|
+
srcs = SRCS + glob([
|
|
46
|
+
"tests/**/*.ts",
|
|
47
|
+
"tests/**/*.tsx",
|
|
48
|
+
"tests/**/*.snap",
|
|
49
|
+
]),
|
|
50
|
+
deps = [
|
|
51
|
+
] + SRC_DEPS,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
# Test262
|
|
55
|
+
ts_project(
|
|
56
|
+
name = "test262-main-bundle",
|
|
57
|
+
srcs = SRCS,
|
|
58
|
+
declaration = True,
|
|
59
|
+
declaration_map = True,
|
|
60
|
+
extends = "//:tsconfig",
|
|
61
|
+
out_dir = "test262",
|
|
62
|
+
resolve_json_module = True,
|
|
63
|
+
tsconfig = "//:tsconfig.es6",
|
|
64
|
+
deps = SRC_DEPS,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
esbuild(
|
|
68
|
+
name = "test262-polyfill",
|
|
69
|
+
entry_point = "test262/polyfill-force.js",
|
|
70
|
+
target = "es6",
|
|
71
|
+
deps = [
|
|
72
|
+
":test262-main-bundle",
|
|
73
|
+
] + SRC_DEPS,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
test262_harness_bin.test262_harness_test(
|
|
77
|
+
name = "test262",
|
|
78
|
+
size = "large",
|
|
79
|
+
data = [
|
|
80
|
+
"test262-polyfill.js",
|
|
81
|
+
"@com_github_tc39_test262//:test262-harness-copy",
|
|
82
|
+
"@com_github_tc39_test262//:test262-locale-copy",
|
|
83
|
+
],
|
|
84
|
+
args = [
|
|
85
|
+
"--reporter-keys",
|
|
86
|
+
"file,attrs,result",
|
|
87
|
+
"--errorForFailures",
|
|
88
|
+
"--timeout",
|
|
89
|
+
"30000",
|
|
90
|
+
"--prelude",
|
|
91
|
+
"$(rootpath test262-polyfill.js)",
|
|
92
|
+
"--test262Dir",
|
|
93
|
+
"../com_github_tc39_test262",
|
|
94
|
+
"../com_github_tc39_test262/test/intl402/Locale/**/*.js",
|
|
95
|
+
],
|
|
96
|
+
# TODO: fix
|
|
97
|
+
tags = ["manual"],
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
write_source_files(
|
|
101
|
+
name = "tsconfig_json",
|
|
102
|
+
files = {"tsconfig.json": "//tools:tsconfig.golden.json"},
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
esbuild(
|
|
106
|
+
name = "polyfill.iife",
|
|
107
|
+
config = {
|
|
108
|
+
"resolveExtensions": [".js"],
|
|
109
|
+
},
|
|
110
|
+
entry_point = "lib/polyfill.js",
|
|
111
|
+
deps = [
|
|
112
|
+
":dist-esm",
|
|
113
|
+
"//:node_modules/tslib",
|
|
114
|
+
] + SRC_DEPS,
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
check_format(
|
|
118
|
+
name = "prettier",
|
|
119
|
+
srcs = glob(
|
|
120
|
+
[
|
|
121
|
+
"**/*",
|
|
122
|
+
],
|
|
123
|
+
exclude = [
|
|
124
|
+
"CHANGELOG.md",
|
|
125
|
+
],
|
|
126
|
+
),
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
package_json_test(
|
|
130
|
+
name = "package_json_test",
|
|
131
|
+
deps = SRC_DEPS,
|
|
132
|
+
)
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [3.0.4](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@3.0.3...@formatjs/intl-locale@3.0.4) (2022-08-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
9
|
+
|
|
10
|
+
## [3.0.3](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@3.0.2...@formatjs/intl-locale@3.0.3) (2022-07-04)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
13
|
+
|
|
14
|
+
## [3.0.2](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@3.0.1...@formatjs/intl-locale@3.0.2) (2022-06-06)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
17
|
+
|
|
18
|
+
## [3.0.1](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@3.0.0...@formatjs/intl-locale@3.0.1) (2022-05-19)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
21
|
+
|
|
22
|
+
# [3.0.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.47...@formatjs/intl-locale@3.0.0) (2022-05-19)
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **react-intl:** fix type issue with react18, fix [#3550](https://github.com/formatjs/formatjs/issues/3550) ([2567b93](https://github.com/formatjs/formatjs/commit/2567b932c5d18b097a43842563046c20ce0c49f1))
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **@formatjs/cli:** package CLI into a single file ([1760787](https://github.com/formatjs/formatjs/commit/176078792894d18b0af72ce1f413f25835f7eb44)), closes [#3547](https://github.com/formatjs/formatjs/issues/3547)
|
|
31
|
+
|
|
32
|
+
### BREAKING CHANGES
|
|
33
|
+
|
|
34
|
+
* **@formatjs/cli:** we push @vue/compiler-core out to `peerDependencies` so if u use vue u should pull this in manuallywip on packaging cli.
|
|
35
|
+
|
|
36
|
+
## [2.4.47](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.46...@formatjs/intl-locale@2.4.47) (2022-03-26)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
39
|
+
|
|
40
|
+
## [2.4.46](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.45...@formatjs/intl-locale@2.4.46) (2022-03-13)
|
|
41
|
+
|
|
42
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
43
|
+
|
|
44
|
+
## [2.4.45](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.44...@formatjs/intl-locale@2.4.45) (2022-02-06)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
47
|
+
|
|
48
|
+
## [2.4.44](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.43...@formatjs/intl-locale@2.4.44) (2022-01-24)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
51
|
+
|
|
52
|
+
## [2.4.43](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.42...@formatjs/intl-locale@2.4.43) (2022-01-09)
|
|
53
|
+
|
|
54
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
55
|
+
|
|
56
|
+
## [2.4.42](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.41...@formatjs/intl-locale@2.4.42) (2022-01-03)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
59
|
+
|
|
60
|
+
## [2.4.41](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.40...@formatjs/intl-locale@2.4.41) (2021-12-01)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
63
|
+
|
|
64
|
+
## [2.4.40](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.39...@formatjs/intl-locale@2.4.40) (2021-10-22)
|
|
65
|
+
|
|
66
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
67
|
+
|
|
68
|
+
## [2.4.39](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.38...@formatjs/intl-locale@2.4.39) (2021-10-17)
|
|
69
|
+
|
|
70
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
71
|
+
|
|
72
|
+
## [2.4.38](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.37...@formatjs/intl-locale@2.4.38) (2021-09-27)
|
|
73
|
+
|
|
74
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
75
|
+
|
|
76
|
+
## [2.4.37](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.36...@formatjs/intl-locale@2.4.37) (2021-08-21)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
79
|
+
|
|
80
|
+
## [2.4.36](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.35...@formatjs/intl-locale@2.4.36) (2021-08-15)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
83
|
+
|
|
84
|
+
## [2.4.35](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.34...@formatjs/intl-locale@2.4.35) (2021-08-06)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
87
|
+
|
|
88
|
+
## [2.4.34](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.33...@formatjs/intl-locale@2.4.34) (2021-07-24)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
91
|
+
|
|
92
|
+
## [2.4.33](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.32...@formatjs/intl-locale@2.4.33) (2021-06-26)
|
|
93
|
+
|
|
94
|
+
### Bug Fixes
|
|
95
|
+
|
|
96
|
+
* **@formatjs/intl-locale:** rm json import to be more ESM-friendly, fix [#2961](https://github.com/formatjs/formatjs/issues/2961) ([0aed8fa](https://github.com/formatjs/formatjs/commit/0aed8fae0ac2419163a094873a4d55313c676d59))
|
|
97
|
+
|
|
98
|
+
## [2.4.32](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.31...@formatjs/intl-locale@2.4.32) (2021-06-05)
|
|
99
|
+
|
|
100
|
+
### Bug Fixes
|
|
101
|
+
|
|
102
|
+
* **@formatjs/intl-locale:** remove Intl check ([8632739](https://github.com/formatjs/formatjs/commit/8632739fb562bed7b570f3ca6c8f82de30898028))
|
|
103
|
+
|
|
104
|
+
## [2.4.31](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.30...@formatjs/intl-locale@2.4.31) (2021-06-05)
|
|
105
|
+
|
|
106
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
107
|
+
|
|
108
|
+
## [2.4.30](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.29...@formatjs/intl-locale@2.4.30) (2021-06-04)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
111
|
+
|
|
112
|
+
## [2.4.29](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.28...@formatjs/intl-locale@2.4.29) (2021-06-01)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
115
|
+
|
|
116
|
+
## [2.4.28](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.27...@formatjs/intl-locale@2.4.28) (2021-05-23)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
119
|
+
|
|
120
|
+
## [2.4.27](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.26...@formatjs/intl-locale@2.4.27) (2021-05-20)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
123
|
+
|
|
124
|
+
## [2.4.26](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.25...@formatjs/intl-locale@2.4.26) (2021-05-17)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
127
|
+
|
|
128
|
+
## [2.4.25](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.24...@formatjs/intl-locale@2.4.25) (2021-05-14)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
131
|
+
|
|
132
|
+
## [2.4.24](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.23...@formatjs/intl-locale@2.4.24) (2021-05-10)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
135
|
+
|
|
136
|
+
## [2.4.23](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.22...@formatjs/intl-locale@2.4.23) (2021-04-26)
|
|
137
|
+
|
|
138
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
139
|
+
|
|
140
|
+
## [2.4.22](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.21...@formatjs/intl-locale@2.4.22) (2021-04-12)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
143
|
+
|
|
144
|
+
## [2.4.21](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.20...@formatjs/intl-locale@2.4.21) (2021-03-26)
|
|
145
|
+
|
|
146
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
147
|
+
|
|
148
|
+
## [2.4.20](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.19...@formatjs/intl-locale@2.4.20) (2021-03-15)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
151
|
+
|
|
152
|
+
## [2.4.19](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.18...@formatjs/intl-locale@2.4.19) (2021-03-01)
|
|
153
|
+
|
|
154
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
155
|
+
|
|
156
|
+
## [2.4.18](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.17...@formatjs/intl-locale@2.4.18) (2021-02-25)
|
|
157
|
+
|
|
158
|
+
### Bug Fixes
|
|
159
|
+
|
|
160
|
+
* bump tslib version dep ([37577d2](https://github.com/formatjs/formatjs/commit/37577d22bf28d23de1d8013ba0047cf221ad8840)), closes [#2645](https://github.com/formatjs/formatjs/issues/2645)
|
|
161
|
+
|
|
162
|
+
## [2.4.17](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.16...@formatjs/intl-locale@2.4.17) (2021-02-25)
|
|
163
|
+
|
|
164
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
165
|
+
|
|
166
|
+
## [2.4.16](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.15...@formatjs/intl-locale@2.4.16) (2021-02-22)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
169
|
+
|
|
170
|
+
## [2.4.15](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.14...@formatjs/intl-locale@2.4.15) (2021-02-21)
|
|
171
|
+
|
|
172
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
173
|
+
|
|
174
|
+
## [2.4.14](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.13...@formatjs/intl-locale@2.4.14) (2021-01-27)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
177
|
+
|
|
178
|
+
## [2.4.13](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.12...@formatjs/intl-locale@2.4.13) (2021-01-05)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
181
|
+
|
|
182
|
+
## [2.4.12](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.11...@formatjs/intl-locale@2.4.12) (2021-01-01)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
185
|
+
|
|
186
|
+
## [2.4.11](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.10...@formatjs/intl-locale@2.4.11) (2020-12-18)
|
|
187
|
+
|
|
188
|
+
### Bug Fixes
|
|
189
|
+
|
|
190
|
+
* **@formatjs/intl-locale:** try catch polyfill detection, fix [#2423](https://github.com/formatjs/formatjs/issues/2423) ([945a869](https://github.com/formatjs/formatjs/commit/945a869dfe63c623d186914eda62426a6dbfd713))
|
|
191
|
+
|
|
192
|
+
## [2.4.10](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.9...@formatjs/intl-locale@2.4.10) (2020-12-18)
|
|
193
|
+
|
|
194
|
+
### Bug Fixes
|
|
195
|
+
|
|
196
|
+
* **@formatjs/intl-locale:** fix webpack5 issue, fix [#2417](https://github.com/formatjs/formatjs/issues/2417) ([e780871](https://github.com/formatjs/formatjs/commit/e78087154942e9d08fe498e828079a34eb398ae5))
|
|
197
|
+
|
|
198
|
+
## [2.4.9](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.8...@formatjs/intl-locale@2.4.9) (2020-12-16)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
201
|
+
|
|
202
|
+
## [2.4.8](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.7...@formatjs/intl-locale@2.4.8) (2020-11-26)
|
|
203
|
+
|
|
204
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
205
|
+
|
|
206
|
+
## [2.4.7](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.6...@formatjs/intl-locale@2.4.7) (2020-11-20)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
209
|
+
|
|
210
|
+
## [2.4.6](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.5...@formatjs/intl-locale@2.4.6) (2020-11-12)
|
|
211
|
+
|
|
212
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
213
|
+
|
|
214
|
+
## [2.4.5](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.4...@formatjs/intl-locale@2.4.5) (2020-11-09)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
217
|
+
|
|
218
|
+
## [2.4.4](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.3...@formatjs/intl-locale@2.4.4) (2020-11-09)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
221
|
+
|
|
222
|
+
## [2.4.3](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.2...@formatjs/intl-locale@2.4.3) (2020-11-05)
|
|
223
|
+
|
|
224
|
+
### Bug Fixes
|
|
225
|
+
|
|
226
|
+
* **@formatjs/intl-locale:** lock down monorepo dep version ([2c4f457](https://github.com/formatjs/formatjs/commit/2c4f45783bdf05e50b6c54ea7f7a4ed37732d88f))
|
|
227
|
+
|
|
228
|
+
## [2.4.2](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.1...@formatjs/intl-locale@2.4.2) (2020-11-04)
|
|
229
|
+
|
|
230
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
231
|
+
|
|
232
|
+
## [2.4.1](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.4.0...@formatjs/intl-locale@2.4.1) (2020-10-26)
|
|
233
|
+
|
|
234
|
+
### Bug Fixes
|
|
235
|
+
|
|
236
|
+
* **@formatjs/intl-locale:** fix UMD bundle ([ca9c910](https://github.com/formatjs/formatjs/commit/ca9c910dbc7b7fa158d40ddf21348e252c4fa3e9))
|
|
237
|
+
|
|
238
|
+
# [2.4.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.10...@formatjs/intl-locale@2.4.0) (2020-10-25)
|
|
239
|
+
|
|
240
|
+
### Features
|
|
241
|
+
|
|
242
|
+
* **@formatjs/intl-locale:** upgrade cldr to v37 ([c14cd57](https://github.com/formatjs/formatjs/commit/c14cd57aed7bd2bcb4a9d3d5bef13046296f7f18))
|
|
243
|
+
|
|
244
|
+
## [2.3.10](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.9...@formatjs/intl-locale@2.3.10) (2020-10-10)
|
|
245
|
+
|
|
246
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
247
|
+
|
|
248
|
+
## [2.3.9](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.8...@formatjs/intl-locale@2.3.9) (2020-10-08)
|
|
249
|
+
|
|
250
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
251
|
+
|
|
252
|
+
## [2.3.8](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.7...@formatjs/intl-locale@2.3.8) (2020-10-01)
|
|
253
|
+
|
|
254
|
+
### Bug Fixes
|
|
255
|
+
|
|
256
|
+
* **@formatjs/intl-locale:** fix invalid object tag issue, fix [#2160](https://github.com/formatjs/formatjs/issues/2160) ([88d658d](https://github.com/formatjs/formatjs/commit/88d658d4b2869a9b9d323d298372766a00651200))
|
|
257
|
+
|
|
258
|
+
## [2.3.7](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.6...@formatjs/intl-locale@2.3.7) (2020-09-18)
|
|
259
|
+
|
|
260
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
261
|
+
|
|
262
|
+
## [2.3.6](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.5...@formatjs/intl-locale@2.3.6) (2020-09-09)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
265
|
+
|
|
266
|
+
## [2.3.5](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.4...@formatjs/intl-locale@2.3.5) (2020-08-28)
|
|
267
|
+
|
|
268
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
269
|
+
|
|
270
|
+
## [2.3.4](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.3...@formatjs/intl-locale@2.3.4) (2020-08-25)
|
|
271
|
+
|
|
272
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
273
|
+
|
|
274
|
+
## [2.3.3](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.2...@formatjs/intl-locale@2.3.3) (2020-08-21)
|
|
275
|
+
|
|
276
|
+
### Bug Fixes
|
|
277
|
+
|
|
278
|
+
* add back polyfill.umd, fix [#2013](https://github.com/formatjs/formatjs/issues/2013) ([b9cfbd2](https://github.com/formatjs/formatjs/commit/b9cfbd2eeead6a5165b0e4cbf1ef3edbfbeca8ce))
|
|
279
|
+
|
|
280
|
+
## [2.3.2](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.1...@formatjs/intl-locale@2.3.2) (2020-08-19)
|
|
281
|
+
|
|
282
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
283
|
+
|
|
284
|
+
## [2.3.1](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.3.0...@formatjs/intl-locale@2.3.1) (2020-08-19)
|
|
285
|
+
|
|
286
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
287
|
+
|
|
288
|
+
# [2.3.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.2.6...@formatjs/intl-locale@2.3.0) (2020-08-18)
|
|
289
|
+
|
|
290
|
+
### Features
|
|
291
|
+
|
|
292
|
+
* **@formatjs/intl-locale:** expose shouldPolyfill to detect if platform needs our polyfill ([3ed62e2](https://github.com/formatjs/formatjs/commit/3ed62e2a72a6934a347f4fdc54a8443bebf7eb07))
|
|
293
|
+
|
|
294
|
+
## [2.2.6](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.2.5...@formatjs/intl-locale@2.2.6) (2020-08-17)
|
|
295
|
+
|
|
296
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
297
|
+
|
|
298
|
+
## [2.2.5](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.2.4...@formatjs/intl-locale@2.2.5) (2020-08-14)
|
|
299
|
+
|
|
300
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
301
|
+
|
|
302
|
+
## [2.2.4](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.2.3...@formatjs/intl-locale@2.2.4) (2020-07-24)
|
|
303
|
+
|
|
304
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
305
|
+
|
|
306
|
+
## [2.2.3](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.2.2...@formatjs/intl-locale@2.2.3) (2020-07-21)
|
|
307
|
+
|
|
308
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
309
|
+
|
|
310
|
+
## [2.2.2](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.2.1...@formatjs/intl-locale@2.2.2) (2020-07-16)
|
|
311
|
+
|
|
312
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
313
|
+
|
|
314
|
+
## [2.2.1](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.2.0...@formatjs/intl-locale@2.2.1) (2020-07-14)
|
|
315
|
+
|
|
316
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
317
|
+
|
|
318
|
+
# [2.2.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.12...@formatjs/intl-locale@2.2.0) (2020-07-14)
|
|
319
|
+
|
|
320
|
+
### Features
|
|
321
|
+
|
|
322
|
+
* publish ([b6e3465](https://github.com/formatjs/formatjs/commit/b6e3465ac95b3fa481f3c89f077a66ac004f7c27))
|
|
323
|
+
|
|
324
|
+
## [2.1.13](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.12...@formatjs/intl-locale@2.1.13) (2020-07-09)
|
|
325
|
+
|
|
326
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
327
|
+
|
|
328
|
+
## [2.1.12](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.11...@formatjs/intl-locale@2.1.12) (2020-07-03)
|
|
329
|
+
|
|
330
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
331
|
+
|
|
332
|
+
## [2.1.11](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.10...@formatjs/intl-locale@2.1.11) (2020-07-03)
|
|
333
|
+
|
|
334
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
335
|
+
|
|
336
|
+
## [2.1.10](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.9...@formatjs/intl-locale@2.1.10) (2020-07-03)
|
|
337
|
+
|
|
338
|
+
### Bug Fixes
|
|
339
|
+
|
|
340
|
+
* add locale-data to package.json files ([52a1481](https://github.com/formatjs/formatjs/commit/52a148196585bf8b33b27b9b948d6333f49072e8))
|
|
341
|
+
|
|
342
|
+
## [2.1.9](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.8...@formatjs/intl-locale@2.1.9) (2020-07-01)
|
|
343
|
+
|
|
344
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
345
|
+
|
|
346
|
+
## [2.1.8](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.7...@formatjs/intl-locale@2.1.8) (2020-06-23)
|
|
347
|
+
|
|
348
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
349
|
+
|
|
350
|
+
## [2.1.7](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.6...@formatjs/intl-locale@2.1.7) (2020-06-20)
|
|
351
|
+
|
|
352
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
353
|
+
|
|
354
|
+
## [2.1.6](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.5...@formatjs/intl-locale@2.1.6) (2020-06-06)
|
|
355
|
+
|
|
356
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
357
|
+
|
|
358
|
+
## [2.1.5](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.4...@formatjs/intl-locale@2.1.5) (2020-06-06)
|
|
359
|
+
|
|
360
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
361
|
+
|
|
362
|
+
## [2.1.4](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.3...@formatjs/intl-locale@2.1.4) (2020-06-04)
|
|
363
|
+
|
|
364
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
365
|
+
|
|
366
|
+
## [2.1.3](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.2...@formatjs/intl-locale@2.1.3) (2020-06-04)
|
|
367
|
+
|
|
368
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
369
|
+
|
|
370
|
+
## [2.1.2](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.1...@formatjs/intl-locale@2.1.2) (2020-06-03)
|
|
371
|
+
|
|
372
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
373
|
+
|
|
374
|
+
## [2.1.1](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.1.0...@formatjs/intl-locale@2.1.1) (2020-05-28)
|
|
375
|
+
|
|
376
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
377
|
+
|
|
378
|
+
# [2.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.0.2...@formatjs/intl-locale@2.1.0) (2020-05-27)
|
|
379
|
+
|
|
380
|
+
### Features
|
|
381
|
+
|
|
382
|
+
* **formatjs-extract-cldr-data:** rm this package ([62bdd32](https://github.com/formatjs/formatjs/commit/62bdd32aadef899228a5303e01865f69fd729fa3))
|
|
383
|
+
|
|
384
|
+
## [2.0.2](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.0.1...@formatjs/intl-locale@2.0.2) (2020-05-25)
|
|
385
|
+
|
|
386
|
+
### Bug Fixes
|
|
387
|
+
|
|
388
|
+
* **@formatjs/intl-locale:** fix add/remove likely subtags ([d72f952](https://github.com/formatjs/formatjs/commit/d72f952a66905a3a7edd75518ccaa72c2020273e))
|
|
389
|
+
|
|
390
|
+
## [2.0.1](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@2.0.0...@formatjs/intl-locale@2.0.1) (2020-05-23)
|
|
391
|
+
|
|
392
|
+
### Bug Fixes
|
|
393
|
+
|
|
394
|
+
* **@formatjs/intl-locale:** remove pegjs build ([1ef7f3e](https://github.com/formatjs/formatjs/commit/1ef7f3e262649faabefcfb43bc30528549863ea3))
|
|
395
|
+
* **@formatjs/intl-locale:** rm unnecessary export polyfill-locales ([a12e4f7](https://github.com/formatjs/formatjs/commit/a12e4f76e2515634a7ad31f35a1ede6f76a27031))
|
|
396
|
+
|
|
397
|
+
# [2.0.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@1.1.1...@formatjs/intl-locale@2.0.0) (2020-05-23)
|
|
398
|
+
|
|
399
|
+
### Features
|
|
400
|
+
|
|
401
|
+
* **@formatjs/intl-locale:** Use native Intl.getCanonicalLocales ([ab79d61](https://github.com/formatjs/formatjs/commit/ab79d6150d68872f291053f67da4a373678735c7))
|
|
402
|
+
|
|
403
|
+
### BREAKING CHANGES
|
|
404
|
+
|
|
405
|
+
* **@formatjs/intl-locale:** This requires @formatjs/intl-getcanonicallocales on
|
|
406
|
+
IE11 and below
|
|
407
|
+
|
|
408
|
+
## [1.1.1](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@1.1.0...@formatjs/intl-locale@1.1.1) (2020-05-21)
|
|
409
|
+
|
|
410
|
+
**Note:** Version bump only for package @formatjs/intl-locale
|
|
411
|
+
|
|
412
|
+
# [1.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-locale@0.1.0...@formatjs/intl-locale@1.1.0) (2020-05-20)
|
|
413
|
+
|
|
414
|
+
### Bug Fixes
|
|
415
|
+
|
|
416
|
+
* **@formatjs/intl-locale:** fix according to https://github.com/tc39/test262/issues/2628 ([1006ed2](https://github.com/formatjs/formatjs/commit/1006ed248837930ffb951d8936feec9878231c71))
|
|
417
|
+
* **@formatjs/intl-locale:** fix and docs ([5c5ef76](https://github.com/formatjs/formatjs/commit/5c5ef7657dd939bc08a9233f25cbae7a662c439f))
|
|
418
|
+
* **@formatjs/intl-locale:** fix minimize ([5ee8909](https://github.com/formatjs/formatjs/commit/5ee890910bd7260e0d549a2dd89f8e39dcbdfc60))
|
|
419
|
+
* **@formatjs/intl-locale:** fix minimize ([2c21dcb](https://github.com/formatjs/formatjs/commit/2c21dcb97043902c5ce7de643b20138333125693))
|
|
420
|
+
* **@formatjs/intl-locale:** more fixes ([1bbd03d](https://github.com/formatjs/formatjs/commit/1bbd03d46905e869c3f69e79c647b64d20d3403f))
|
|
421
|
+
* **@formatjs/intl-locale:** split out likelySubtags data ([ed34904](https://github.com/formatjs/formatjs/commit/ed3490496dc793ebbad6446d1d304d2cb2e23fd1))
|
|
422
|
+
|
|
423
|
+
### Features
|
|
424
|
+
|
|
425
|
+
* **@formatjs/intl-locale:** make it public ([c377a28](https://github.com/formatjs/formatjs/commit/c377a2899b74800422221453ecd7d7f477810995))
|
|
426
|
+
* **@formatjs/intl-locale:** Use a much smaller handwritten parser ([c210cbf](https://github.com/formatjs/formatjs/commit/c210cbff1b88245a3e041b14edaaf2f5aefca3bd))
|
|
427
|
+
|
|
428
|
+
# 0.1.0 (2020-05-18)
|
|
429
|
+
|
|
430
|
+
### Bug Fixes
|
|
431
|
+
|
|
432
|
+
* **react-intl:** reduce onError chattiness ([42d0ac4](https://github.com/formatjs/formatjs/commit/42d0ac433d4d31629bd2aadb2dafb49775d01aac))
|
|
433
|
+
|
|
434
|
+
### Features
|
|
435
|
+
|
|
436
|
+
* **@formatjs/intl-locale:** initial commit ([f469e81](https://github.com/formatjs/formatjs/commit/f469e812a052318c8ec0816abc86035256e4fe11))
|
package/LICENSE.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Type-only circular import
|
|
2
|
+
// eslint-disable-next-line import/no-cycle
|
|
3
|
+
|
|
4
|
+
import Locale, {IntlLocaleInternal} from '.'
|
|
5
|
+
|
|
6
|
+
const internalSlotMap = new WeakMap<Locale, IntlLocaleInternal>()
|
|
7
|
+
|
|
8
|
+
export default function getInternalSlots(x: Locale): IntlLocaleInternal {
|
|
9
|
+
let internalSlots = internalSlotMap.get(x)
|
|
10
|
+
if (!internalSlots) {
|
|
11
|
+
internalSlots = Object.create(null) as IntlLocaleInternal
|
|
12
|
+
internalSlotMap.set(x, internalSlots)
|
|
13
|
+
}
|
|
14
|
+
return internalSlots
|
|
15
|
+
}
|