@fr0st/datetime 8.1.0 → 8.1.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 +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Immutable date and time handling for JavaScript with locale-aware formatting, pa
|
|
|
27
27
|
npm i @fr0st/datetime
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
FrostDateTime is ESM-only. Import the default `DateTime` export in Node and bundlers.
|
|
30
|
+
FrostDateTime's package entry point is ESM-only. Import the default `DateTime` export in Node and bundlers.
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
33
|
import DateTime from '@fr0st/datetime';
|
|
@@ -55,11 +55,13 @@ Load the bundle from your own copy or a CDN:
|
|
|
55
55
|
<!-- or -->
|
|
56
56
|
<script src="https://cdn.jsdelivr.net/npm/@fr0st/datetime@latest/dist/frost-datetime.min.js"></script>
|
|
57
57
|
<script>
|
|
58
|
-
const date = DateTime.now({ timeZone: 'UTC' });
|
|
58
|
+
const date = globalThis.DateTime.now({ timeZone: 'UTC' });
|
|
59
59
|
console.log(date.toIsoString());
|
|
60
60
|
</script>
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
The package root resolves to the prebuilt ESM bundle. Published files under `dist/` and `src/` are also available through matching package subpaths.
|
|
64
|
+
|
|
63
65
|
## Quick Start
|
|
64
66
|
|
|
65
67
|
```js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fr0st/datetime",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Immutable date and time handling for JavaScript with locale-aware formatting, parsing, calendar math, and IANA or fixed-offset time zones.",
|
|
6
6
|
"keywords": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"test:coverage": "vitest run --coverage"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@fr0st/eslint-config": "^5.0.
|
|
57
|
+
"@fr0st/eslint-config": "^5.0.2",
|
|
58
58
|
"@vitest/coverage-v8": "^4.1.11",
|
|
59
59
|
"eslint": "^10.9.1",
|
|
60
60
|
"vite": "^8.2.2",
|