@fr0st/datetime 6.1.1 → 8.0.0

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/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@fr0st/datetime",
3
- "version": "6.1.1",
4
- "description": "FrostDateTime is a free, open-source date manipulation library for JavaScript.",
3
+ "version": "8.0.0",
4
+ "private": false,
5
+ "description": "Immutable date and time handling for JavaScript with locale-aware formatting, parsing, calendar math, and IANA or fixed-offset time zones.",
5
6
  "keywords": [
6
7
  "date",
7
8
  "time",
@@ -18,10 +19,23 @@
18
19
  "url": "https://github.com/elusivecodes/FrostDateTime/issues",
19
20
  "email": "elusivecodes@gmail.com"
20
21
  },
21
- "main": "src/index.js",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/elusivecodes/FrostDateTime.git"
25
+ },
26
+ "license": "MIT",
27
+ "author": "Elusive <elusivecodes@gmail.com>",
28
+ "sideEffects": false,
22
29
  "type": "module",
30
+ "exports": {
31
+ ".": "./src/index.js"
32
+ },
33
+ "main": "src/index.js",
34
+ "jsdelivr": "dist/frost-datetime.min.js",
35
+ "unpkg": "dist/frost-datetime.min.js",
23
36
  "files": [
24
37
  "dist",
38
+ "Formats.md",
25
39
  "LICENSE",
26
40
  "README.md",
27
41
  "src"
@@ -30,22 +44,21 @@
30
44
  "build": "npm run js-compile && npm run js-minify",
31
45
  "js-compile": "rollup --config",
32
46
  "js-lint": "eslint",
33
- "js-minify": "terser --compress passes=2 --mangle --source-map \"content=dist/frost-datetime.js.map\" --output dist/frost-datetime.min.js dist/frost-datetime.js",
34
- "test": "mocha --recursive",
35
- "locales": "php generate-locales.php > src/formatter/locales.js"
47
+ "js-minify": "terser --compress passes=2 --mangle --source-map \"content=dist/frost-datetime.js.map,url=frost-datetime.min.js.map\" --output dist/frost-datetime.min.js dist/frost-datetime.js",
48
+ "locales": "php generate-locales.php > src/formatter/locales.js",
49
+ "test": "mocha --forbid-only --file test/setup.js \"test/unit/**/*.test.js\""
36
50
  },
37
- "repository": {
38
- "type": "git",
39
- "url": "https://github.com/elusivecodes/FrostDateTime.git"
40
- },
41
- "author": "Elusive <elusivecodes@gmail.com>",
42
- "license": "MIT",
43
- "private": false,
44
51
  "devDependencies": {
45
- "@fr0st/eslint-config": "^1.0.3",
46
- "eslint": "^9.26.0",
47
- "mocha": "^11.2.2",
48
- "rollup": "^4.40.2",
49
- "terser": "^5.39.0"
52
+ "@fr0st/eslint-config": "^4.0.0",
53
+ "eslint": "^10.8.1",
54
+ "mocha": "^11.8.0",
55
+ "rollup": "^4.62.4",
56
+ "terser": "^5.50.0"
57
+ },
58
+ "engines": {
59
+ "node": "^20.19.0 || ^22.13.0 || >=24"
60
+ },
61
+ "publishConfig": {
62
+ "access": "public"
50
63
  }
51
- }
64
+ }