@master4n/temporal-transformer
Advanced tools
+1
-1
| { | ||
| "name": "@master4n/temporal-transformer", | ||
| "version": "2.0.2", | ||
| "version": "2.0.3", | ||
| "description": "TypeScript library to convert epoch timestamps (seconds, milliseconds, microseconds, nanoseconds) to human-readable dates, parse date strings to epoch, compute calendar-accurate durations, and handle IANA timezones. Powered by Luxon — small bundle, immutable, no moment.js.", | ||
@@ -5,0 +5,0 @@ "main": "./commonjs/index.cjs", |
+15
-3
@@ -9,4 +9,4 @@ # @master4n/temporal-transformer | ||
| [](https://nodejs.org/) | ||
| [](https://bundlephobia.com/package/@master4n/temporal-transformer) | ||
| [](#bundle-size-considerations) | ||
| [](./bench/RESULTS.md) | ||
| [](https://github.com/Master4Novice/temporal-transformer/actions/workflows/ci.yml) | ||
| [](https://github.com/Master4Novice) | ||
@@ -16,3 +16,9 @@ | ||
| > **v2.0 is out.** Engine swapped from moment.js to [Luxon](https://moment.github.io/luxon/) — same API, ~60% smaller bundle (~71 KB vs ~180 KB), no maintenance-mode dependency. Upgrade with `npm i @master4n/temporal-transformer@2` and run `npx @master4n/temporal-transformer-codemod ./src` to migrate format strings automatically. See [MIGRATION.md](./MIGRATION.md). | ||
| > **v2.x is the current line.** Engine swapped from moment.js to [Luxon](https://moment.github.io/luxon/) — same API, ~60% smaller bundle (~71 KB vs ~180 KB), no maintenance-mode dependency. Upgrading from v1.x is a **one-command** migration thanks to the companion codemod: | ||
| > | ||
| > ```bash | ||
| > npx @master4n/temporal-transformer-codemod --update-deps ./ | ||
| > ``` | ||
| > | ||
| > The codemod rewrites every moment-style format string in your source (`YYYY-MM-DD` → `yyyy-MM-dd`, `dddd` → `cccc`, `[literal]` → `'literal'`, etc.), handles untranslatable tokens with stderr warnings, AND bumps `@master4n/temporal-transformer` in every `package.json` it finds to `^2.0.2`. See [MIGRATION.md](./MIGRATION.md) for the full upgrade story; [codemod repo](https://github.com/Master4Novice/temporal-transformer-codemod) for the tool itself. | ||
@@ -660,2 +666,8 @@ --- | ||
| ### 2.0.3 | ||
| - **Docs:** Top-of-README callout updated to highlight the companion codemod's new one-command migration (`npx @master4n/temporal-transformer-codemod --update-deps ./`). The codemod (currently `2.0.3`) now also bumps `@master4n/temporal-transformer` to `^2.0.2` in every `package.json` it finds, in addition to rewriting format strings. | ||
| - **Docs:** Replaced unreliable bundlephobia badge with a static gzipped-size badge (`7.5 KB`) linking to `bench/RESULTS.md`. Added a "tests passing" badge. | ||
| - **No code change** — runtime behavior identical to 2.0.2. | ||
| ### 2.0.2 | ||
@@ -662,0 +674,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
147949
0.68%757
1.61%0
-100%