use-intl 2.10.0-alpha.4 → 2.10.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.
package/CHANGELOG.md DELETED
@@ -1,471 +0,0 @@
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
- ## 2.9.2 (2022-12-08)
7
-
8
- **Note:** Version bump only for package use-intl
9
-
10
-
11
-
12
-
13
-
14
- ## 2.9.1 (2022-11-03)
15
-
16
- **Note:** Version bump only for package use-intl
17
-
18
-
19
-
20
-
21
-
22
- # 2.9.0 (2022-10-27)
23
-
24
-
25
- ### Features
26
-
27
- * Next.js 13 compatibility ([#140](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/140)) ([65326a0](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/65326a0b47980f260df466a283a6e7a0aa5e1cd0)), closes [#139](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/139)
28
-
29
-
30
-
31
-
32
-
33
- # 2.8.0 (2022-10-18)
34
-
35
-
36
- ### Features
37
-
38
- * Provide `createTranslator` and `createIntl` by extracting a React-agnostic core library. Thanks to David Brands from Marvia for sponsoring the work on this feature, participating in discussion and providing feedback! ([#137](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/137)) ([91f7489](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/91f748972008b8587553b48aa36c95d7348b4b0c))
39
-
40
-
41
-
42
-
43
-
44
- ## 2.7.6 (2022-09-22)
45
-
46
- **Note:** Version bump only for package use-intl
47
-
48
-
49
-
50
-
51
-
52
- ## 2.7.5 (2022-08-30)
53
-
54
- **Note:** Version bump only for package use-intl
55
-
56
-
57
-
58
-
59
-
60
- ## 2.7.4 (2022-05-30)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * Adapt TypeScript validation to work with messages files that only have a single top-level namespace ([#115](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/115)) ([cf0b83e](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/cf0b83e3a591cfe87e17537c3ca0c7000cc70b1e))
66
-
67
-
68
-
69
-
70
-
71
- ## 2.7.3 (2022-05-20)
72
-
73
-
74
- ### Bug Fixes
75
-
76
- * Add back the ability to render the provider without messages ([#113](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/113)) ([8395822](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/8395822fa17cd0a04b88f8edce3b20e5e613fc78))
77
-
78
-
79
-
80
-
81
-
82
- ## 2.7.2 (2022-05-10)
83
-
84
-
85
- ### Bug Fixes
86
-
87
- * Enable tree-shaking ([#108](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/108)) ([157b0e2](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/157b0e28376055e7e34e86007c51d008c8e214aa))
88
-
89
-
90
-
91
-
92
-
93
- ## 2.7.1 (2022-04-28)
94
-
95
-
96
- ### Bug Fixes
97
-
98
- * Allow null message values ([#110](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/110)) ([14ae8ff](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/14ae8ffdf1b295873f14081e2c3709d0f9bd2b9e))
99
-
100
-
101
-
102
-
103
-
104
- # 2.7.0 (2022-04-28)
105
-
106
-
107
- ### Features
108
-
109
- * Warn for invalid namespace keys ([#106](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/106)) ([e86ab28](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/e86ab28b9180b866ce1a0a9173355d4b686b7d07))
110
-
111
-
112
-
113
-
114
-
115
- # 2.6.0 (2022-04-08)
116
-
117
-
118
- ### Features
119
-
120
- * Support React 18 ([#98](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/98)) ([38614eb](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/38614eb9c6d6fb96704424d7f3ff8a67a24b789e))
121
-
122
-
123
-
124
-
125
-
126
- # 2.5.0 (2022-04-01)
127
-
128
-
129
- ### Features
130
-
131
- * Type safe messages ([#93](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/93)) ([13b49b1](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/13b49b138bc0ec3adbe661af6a70dfabfe7e86b0))
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
- ## 2.4.1 (2022-03-24)
142
-
143
-
144
- ### Bug Fixes
145
-
146
- * Overwrite prerelease ([6caf5c4](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/6caf5c48a35179f802503bc6580469187765c837))
147
-
148
-
149
-
150
-
151
-
152
- # [2.4.0](https://github.com/amannn/next-intl/tree/main/packages/use-intl/compare/v2.3.5...v2.4.0) (2022-02-08)
153
-
154
-
155
- ### Features
156
-
157
- * Default translation values ([#86](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/86)) ([0ed5e70](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/0ed5e70ffc57dcdb1b7b9270dbce9e8475b3f478))
158
-
159
-
160
-
161
-
162
-
163
- ## 2.3.5 (2022-01-19)
164
-
165
-
166
- ### Bug Fixes
167
-
168
- * Support identical wrappers with identical text content in rich text ([#80](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/80)) ([b35bb9f](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/b35bb9ffc5fa56c6260b6b424be3cd875f199aef))
169
-
170
-
171
-
172
-
173
-
174
- ## 2.3.4 (2022-01-04)
175
-
176
-
177
- ### Bug Fixes
178
-
179
- * Allow usage outside of Next.js (e.g. Jest and Storybook) ([#76](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/76)) ([7c6925b](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/7c6925b39338be95c1c940c67a1ae2f5e3f85cdd))
180
-
181
-
182
-
183
-
184
-
185
- ## 2.3.3 (2021-12-23)
186
-
187
- **Note:** Version bump only for package use-intl
188
-
189
-
190
-
191
-
192
-
193
- ## 2.3.2 (2021-12-23)
194
-
195
- **Note:** Version bump only for package use-intl
196
-
197
-
198
-
199
-
200
-
201
- ## 2.3.1 (2021-12-23)
202
-
203
- **Note:** Version bump only for package use-intl
204
-
205
-
206
-
207
-
208
-
209
- # 2.3.0 (2021-11-24)
210
-
211
-
212
- ### Features
213
-
214
- * Add `useLocale` and `useTimeZone` ([#67](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/67)) ([7833f4a](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/7833f4adc1aadc937cbaa550a968ef6f7b4f5ee1))
215
-
216
-
217
-
218
-
219
-
220
- ## 2.2.1 (2021-11-23)
221
-
222
-
223
- ### Bug Fixes
224
-
225
- * Clearer error message when no messages are provided ([#66](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/66)) ([742729a](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/742729aaddd63367efc2b79ef0cdf93545abdfb0))
226
-
227
-
228
-
229
-
230
-
231
- # 2.2.0 (2021-11-02)
232
-
233
-
234
- ### Features
235
-
236
- * TypeScript improvements: Use enum type for `style` of `NumberFormatOptions`, only allow passing React children to messages rendered with `t.rich` and update `tslib` ([#63](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/63)) ([d73e935](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/d73e9358bf13c87c0a653bd9fbed35e41548ff1d))
237
-
238
-
239
-
240
-
241
-
242
- ## 2.1.1 (2021-10-28)
243
-
244
- **Note:** Version bump only for package use-intl
245
-
246
-
247
-
248
-
249
-
250
- # 2.1.0 (2021-10-27)
251
-
252
-
253
- ### Features
254
-
255
- * Support Next.js 12 ([#61](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/61)) ([0391cc8](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/0391cc85d3401bca9df29080a569957f6be93c85))
256
-
257
-
258
-
259
-
260
-
261
- ## 2.0.5 (2021-09-28)
262
-
263
- **Note:** Version bump only for package use-intl
264
-
265
-
266
-
267
-
268
-
269
- ## 2.0.4 (2021-09-28)
270
-
271
- **Note:** Version bump only for package use-intl
272
-
273
-
274
-
275
-
276
-
277
- ## 2.0.3 (2021-09-17)
278
-
279
- **Note:** Version bump only for package use-intl
280
-
281
-
282
-
283
-
284
-
285
- ## 2.0.2 (2021-09-17)
286
-
287
-
288
- ### Bug Fixes
289
-
290
- * Render correct messages when the namespace changes in `useTranslations` ([#58](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/58)) ([b8f7dab](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/b8f7dab0e3a213a91bdcd7929547cd01ba0b5f54))
291
-
292
-
293
-
294
-
295
-
296
- ## 2.0.1 (2021-09-04)
297
-
298
- **Note:** Version bump only for package use-intl
299
-
300
-
301
-
302
-
303
-
304
- # 2.0.0 (2021-08-26)
305
-
306
-
307
- * feat!: Use a separate API for rich text formatting to avoid type casting in TypeScript #54 ([4c13a64](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/4c13a644ce99992d9e57887afe35a09b8e3d6572)), closes [#54](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/54)
308
-
309
-
310
- ### BREAKING CHANGES
311
-
312
- * Instead of using the `t` function for formatting both regular messages and rich text, this function will only work for regular messages now. For rich text you can use `t.rich` instead now.
313
-
314
-
315
-
316
-
317
-
318
- ## 1.5.1 (2021-08-13)
319
-
320
-
321
- ### Bug Fixes
322
-
323
- * Improve API for rendering raw messages and add docs ([#51](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/51)) ([19f4a7e](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/19f4a7e4e81e1cff78dc7e3f337dce69800be280))
324
-
325
-
326
-
327
-
328
-
329
- # 1.5.0 (2021-08-10)
330
-
331
-
332
- ### Features
333
-
334
- * Add flag to return raw messages ([#48](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/48)) ([b34e19f](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/b34e19ff618308b7d0c01e7969975215d96ff608))
335
-
336
-
337
-
338
-
339
-
340
- ## 1.4.7 (2021-08-02)
341
-
342
-
343
- ### Bug Fixes
344
-
345
- * Adjust default for `onError` of the provider to log errors correctly ([#46](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/46)) ([d0a1986](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/d0a1986905e30acac40630e9ea6d099caad617fb))
346
-
347
-
348
-
349
-
350
-
351
- ## 1.4.6 (2021-08-02)
352
-
353
-
354
- ### Bug Fixes
355
-
356
- * Use `timeZone` in translation function from `useTranslations` ([#45](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/45)) ([ebf75f2](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/ebf75f2add0ddc46f89768e9481bb16c56f94720))
357
-
358
-
359
-
360
-
361
-
362
- ## 1.4.5 (2021-07-26)
363
-
364
- **Note:** Version bump only for package use-intl
365
-
366
-
367
-
368
-
369
-
370
- ## 1.4.4 (2021-07-08)
371
-
372
- **Note:** Version bump only for package use-intl
373
-
374
-
375
-
376
-
377
-
378
- ## 1.4.3 (2021-07-08)
379
-
380
- **Note:** Version bump only for package use-intl
381
-
382
-
383
-
384
-
385
-
386
- ## [1.4.2](https://github.com/amannn/next-intl/tree/main/packages/use-intl/compare/v1.4.1...v1.4.2) (2021-06-16)
387
-
388
-
389
- ### Bug Fixes
390
-
391
- * Don't require `react-dom` as a peer dependency ([#39](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/39)) ([39edfcd](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/39edfcd9091e09570fc2152cda6a1e9ae5e7c210))
392
-
393
-
394
-
395
-
396
-
397
- ## 1.3.11 (2021-05-07)
398
-
399
- **Note:** Version bump only for package use-intl
400
-
401
-
402
-
403
-
404
-
405
- ## 1.3.10 (2021-05-02)
406
-
407
- **Note:** Version bump only for package use-intl
408
-
409
-
410
-
411
-
412
-
413
- ## 1.3.9 (2021-05-02)
414
-
415
- **Note:** Version bump only for package use-intl
416
-
417
-
418
-
419
-
420
-
421
- ## 1.3.8 (2021-03-26)
422
-
423
- **Note:** Version bump only for package use-intl
424
-
425
-
426
-
427
-
428
-
429
- ## 1.3.7 (2021-02-12)
430
-
431
- **Note:** Version bump only for package use-intl
432
-
433
-
434
-
435
-
436
-
437
- ## 1.3.6 (2021-02-09)
438
-
439
- **Note:** Version bump only for package use-intl
440
-
441
-
442
-
443
-
444
-
445
- ## 1.3.5 (2021-02-09)
446
-
447
- **Note:** Version bump only for package use-intl
448
-
449
-
450
-
451
-
452
-
453
- ## 1.3.4 (2021-02-09)
454
-
455
- **Note:** Version bump only for package use-intl
456
-
457
-
458
-
459
-
460
-
461
- ## [1.3.3](https://github.com/amannn/next-intl/tree/main/packages/use-intl/compare/v1.3.2...v1.3.3) (2021-02-09)
462
-
463
-
464
- ### Bug Fixes
465
-
466
- * Update DateTimeFormatOptions ([#29](https://github.com/amannn/next-intl/tree/main/packages/use-intl/issues/29)) ([91a8f52](https://github.com/amannn/next-intl/tree/main/packages/use-intl/commit/91a8f5216a9ef2a0e76be6e3e8bd706f5c7496a3))
467
-
468
-
469
- ## Previous releases
470
-
471
- See [next-intl changelog](https://github.com/amannn/next-intl/blob/main/CHANGELOG.md).