chore: ADR-007 peer-dep migration to luxon v3, CHANGELOG update (v3.0.0 BREAKING)

This commit is contained in:
Aric Camarata 2026-05-28 13:46:05 -04:00
parent 10c2bd60ee
commit b60e36d485
3 changed files with 339 additions and 877 deletions

View file

@ -8,8 +8,12 @@ Hijri/Gregorian date conversion and formatting. Supports two calendar systems: U
## Installation ## Installation
`luxon-hijri` requires `luxon` and `hijri-core` as peer dependencies. Install all three:
```bash ```bash
npm install luxon-hijri pnpm add luxon-hijri luxon hijri-core
# or
npm install luxon-hijri luxon hijri-core
``` ```
## Quick Start ## Quick Start

View file

@ -1,6 +1,6 @@
{ {
"name": "luxon-hijri", "name": "luxon-hijri",
"version": "2.1.0", "version": "3.0.0",
"description": "Hijri/Gregorian date conversion and formatting using the Umm al-Qura calendar. Built on Luxon. Supports toHijri, toGregorian, formatHijriDate, and isValidHijriDate.", "description": "Hijri/Gregorian date conversion and formatting using the Umm al-Qura calendar. Built on Luxon. Supports toHijri, toGregorian, formatHijriDate, and isValidHijriDate.",
"author": "Aric Camarata", "author": "Aric Camarata",
"license": "MIT", "license": "MIT",
@ -9,15 +9,11 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"import": { "types": "./dist/index.d.ts",
"types": "./dist/index.d.mts", "import": "./dist/index.mjs",
"default": "./dist/index.mjs" "require": "./dist/index.cjs"
}, },
"require": { "./package.json": "./package.json"
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
}, },
"sideEffects": false, "sideEffects": false,
"files": [ "files": [
@ -41,7 +37,8 @@
"prepublishOnly": "tsup", "prepublishOnly": "tsup",
"lint": "eslint .", "lint": "eslint .",
"format": "prettier --write .", "format": "prettier --write .",
"format:check": "prettier --check ." "format:check": "prettier --check .",
"coverage": "c8 --reporter=lcov --reporter=text node --test"
}, },
"keywords": [ "keywords": [
"hijri", "hijri",
@ -55,13 +52,23 @@
"format", "format",
"typescript" "typescript"
], ],
"dependencies": { "peerDependencies": {
"hijri-core": "^1.0.0", "hijri-core": "^1.0.0",
"luxon": "^3.5.0" "luxon": "^3.0.0"
},
"peerDependenciesMeta": {
"hijri-core": {
"optional": false
},
"luxon": {
"optional": false
}
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^10.0.1", "@eslint/js": "^10.0.1",
"@types/luxon": "^3.4.2", "@types/luxon": "^3.4.2",
"hijri-core": "^1.0.0",
"luxon": "^3.5.0",
"@types/node": "^22.15.0", "@types/node": "^22.15.0",
"eslint": "^10.0.3", "eslint": "^10.0.3",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
@ -81,5 +88,6 @@
"homepage": "https://github.com/acamarata/luxon-hijri#readme", "homepage": "https://github.com/acamarata/luxon-hijri#readme",
"bugs": { "bugs": {
"url": "https://github.com/acamarata/luxon-hijri/issues" "url": "https://github.com/acamarata/luxon-hijri/issues"
} },
"type": "module"
} }

File diff suppressed because it is too large Load diff