@curly-message/parser 1.0.0-next.0 → 1.0.0-next.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/README.md +14 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -72,6 +72,15 @@ host's own numeric conversion makes of them: `{{v:number}}` over `{ v: '' }`
|
|
|
72
72
|
takes the fallback chain rather than formatting a zero, and `{{v:date}}` over
|
|
73
73
|
the same value takes it rather than formatting the epoch.
|
|
74
74
|
|
|
75
|
+
## Installation
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm install @curly-message/parser@next
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The package is a prerelease, published under the `next` dist-tag until a
|
|
82
|
+
stable version reaches `latest`.
|
|
83
|
+
|
|
75
84
|
## Usage
|
|
76
85
|
|
|
77
86
|
```js
|
|
@@ -387,7 +396,7 @@ wants as an ordinary string value, with every backslash doubled.
|
|
|
387
396
|
|
|
388
397
|
## Status
|
|
389
398
|
|
|
390
|
-
**
|
|
399
|
+
**Prerelease under the `next` dist-tag, and the public surface is unstable.**
|
|
391
400
|
|
|
392
401
|
Nothing here references a host framework: `resolve` takes the format's own
|
|
393
402
|
inputs, and an adapter that presents this parser to a host library belongs in
|
|
@@ -400,7 +409,10 @@ message resolves to rather than merely what it can do — without Intl, `number`
|
|
|
400
409
|
`date`, `ago` and `currency` are modifier names nobody registered.
|
|
401
410
|
|
|
402
411
|
The specification is normative — where this implementation and the
|
|
403
|
-
specification disagree, this implementation is wrong.
|
|
412
|
+
specification disagree, this implementation is wrong. The specification's
|
|
413
|
+
conformance set (`@curly-message/conformance`) holds it to that: the adapter of
|
|
414
|
+
section 14.3 lives in `tests/conformance/adapter.ts`, and `npm test` runs
|
|
415
|
+
every case the set ships against it, at every level.
|
|
404
416
|
|
|
405
417
|
## Development
|
|
406
418
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curly-message/parser",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.1",
|
|
4
4
|
"description": "JavaScript implementation of the Curly Message Format.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/curly-message/parsers/tree/main/js#readme",
|
|
50
50
|
"devDependencies": {
|
|
51
|
+
"@curly-message/conformance": "^1.0.0-next.1",
|
|
51
52
|
"@eslint/js": "^10.0.1",
|
|
52
53
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
53
54
|
"eslint": "^10.8.1",
|