temporal-fmt 0.8.985 → 0.8.986
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 +5 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -989,11 +989,11 @@ Migrate file by file, dropping the wrapper once nothing calls the old path anymo
|
|
|
989
989
|
- **Offset tokens can't express sub-minute historical offsets.** They read `ZonedDateTime.prototype.offset`, which Temporal exposes as `+HH:MM` for any modern date. Historical LMT offsets with seconds (Europe/London before 1847 was `+00:01:15`) aren't reachable through that field, and the offset tokens' regex shapes don't include a seconds group either. Construct the `ZonedDateTime` directly if you need to round-trip one of those. Offset range is bounded to `-12:00` through `+14:00` (Baker Island to Kiritimati) — `+14:01`/`-12:01` throw even though each digit is individually plausible, since no real zone uses an offset past that range.
|
|
990
990
|
|
|
991
991
|
## Related tools
|
|
992
|
-
|
|
993
|
-
Neither of these ships as part of this repository — separate packages,
|
|
994
|
-
|
|
995
|
-
- [`eslint-plugin-temporal-fmt`](https://www.npmjs.com/package/eslint-plugin-temporal-fmt) — lints format strings for common mistakes (e.g. `hh` without `a`). This is what
|
|
996
|
-
- [`temporal-fmt-codemod`](https://github.com/DirazCoder/temporal-fmt-codemod) — a jscodeshift AST codemod that
|
|
992
|
+
|
|
993
|
+
Neither of these ships as part of this repository — separate packages. **Both are now deprecated and archived** — single-maintainer bandwidth, no further updates — but the last published versions still work if you want them:
|
|
994
|
+
|
|
995
|
+
- [`eslint-plugin-temporal-fmt`](https://www.npmjs.com/package/eslint-plugin-temporal-fmt) *(deprecated, archived)* — lints format strings for common mistakes (e.g. `hh` without `a`). This is what backed the `analyzeFormat(formatStr).warnings` check mentioned in [Introspection and the analyzer](#introspection-and-the-analyzer) — same underlying metadata, surfaced as a lint diagnostic instead of a runtime call.
|
|
996
|
+
- [`temporal-fmt-codemod`](https://github.com/DirazCoder/temporal-fmt-codemod) *(deprecated, archived)* — a jscodeshift AST codemod that rewrote `dayjs(x).format(...)`/date-fns `format(...)` *call sites* across a codebase, not just format-string literals. A different job from the CLI's `translate` subcommand (see [CLI](#cli)), which only translates a format string you hand it and doesn't touch call sites; this was the option for migrating an entire codebase and rewriting the calls themselves.
|
|
997
997
|
|
|
998
998
|
## Testing
|
|
999
999
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "temporal-fmt",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.986",
|
|
4
4
|
"description": "Format Temporal.PlainDate/PlainDateTime/PlainTime/ZonedDateTime objects using date-fns-style token strings.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -171,13 +171,13 @@
|
|
|
171
171
|
"devDependencies": {
|
|
172
172
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
173
173
|
"c8": "^12.0.0",
|
|
174
|
-
"publint": "^0.3.
|
|
175
|
-
"tsup": "^
|
|
174
|
+
"publint": "^0.3.25",
|
|
175
|
+
"tsup": "^9.0.0",
|
|
176
176
|
"typescript": "^7.0.2",
|
|
177
|
-
"vitest": "^5.0.
|
|
177
|
+
"vitest": "^5.0.5"
|
|
178
178
|
},
|
|
179
179
|
"optionalDependencies": {
|
|
180
|
-
"temporal-polyfill": "^1.0.
|
|
180
|
+
"temporal-polyfill": "^1.0.6"
|
|
181
181
|
},
|
|
182
182
|
"overrides": {
|
|
183
183
|
"esbuild": "0.28.2"
|