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 fd246b7a99
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
`luxon-hijri` requires `luxon` and `hijri-core` as peer dependencies. Install all three:
```bash
npm install luxon-hijri
pnpm add luxon-hijri luxon hijri-core
# or
npm install luxon-hijri luxon hijri-core
```
## Quick Start

View file

@ -1,6 +1,6 @@
{
"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.",
"author": "Aric Camarata",
"license": "MIT",
@ -9,15 +9,11 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
}
}
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
@ -41,7 +37,8 @@
"prepublishOnly": "tsup",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check ."
"format:check": "prettier --check .",
"coverage": "c8 --reporter=lcov --reporter=text node --test"
},
"keywords": [
"hijri",
@ -55,13 +52,23 @@
"format",
"typescript"
],
"dependencies": {
"peerDependencies": {
"hijri-core": "^1.0.0",
"luxon": "^3.5.0"
"luxon": "^3.0.0"
},
"peerDependenciesMeta": {
"hijri-core": {
"optional": false
},
"luxon": {
"optional": false
}
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/luxon": "^3.4.2",
"hijri-core": "^1.0.0",
"luxon": "^3.5.0",
"@types/node": "^22.15.0",
"eslint": "^10.0.3",
"eslint-config-prettier": "^10.1.8",
@ -81,5 +88,6 @@
"homepage": "https://github.com/acamarata/luxon-hijri#readme",
"bugs": {
"url": "https://github.com/acamarata/luxon-hijri/issues"
}
},
"type": "module"
}

File diff suppressed because it is too large Load diff