mirror of
https://github.com/acamarata/luxon-hijri.git
synced 2026-07-03 12:10:41 +00:00
chore: ADR-007 peer-dep migration to luxon v3, CHANGELOG update (v3.0.0 BREAKING)
This commit is contained in:
parent
10c2bd60ee
commit
b60e36d485
3 changed files with 339 additions and 877 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
36
package.json
36
package.json
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1174
pnpm-lock.yaml
1174
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue