@midseelee/date-fns-buddhist-adapter 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/README.md +11 -8
  2. package/package.json +10 -6
package/README.md CHANGED
@@ -1,7 +1,3 @@
1
- ```
2
-
3
- ```
4
-
5
1
  # @midseelee/date-fns-buddhist-adapter
6
2
 
7
3
  > Forked from [ascendcorp/date-fns-buddhist-adapter](https://github.com/ascendcorp/date-fns-buddhist-adapter)
@@ -11,19 +7,26 @@ date-fns adapter with Buddhist years functionality compatible with [MUI-X](https
11
7
  ## Installation
12
8
 
13
9
  ```shell
14
- npm install @midseelee/date-fns-buddhist-adapter
10
+ npm install @midseelee/date-fns-buddhist-adapter date-fns@4.1.0 @date-io/date-fns@3.2.1
15
11
  # or
16
- pnpm add @midseelee/date-fns-buddhist-adapter
12
+ pnpm add @midseelee/date-fns-buddhist-adapter date-fns@4.1.0 @date-io/date-fns@3.2.1
17
13
  # or
18
- bun add @midseelee/date-fns-buddhist-adapter
14
+ bun add @midseelee/date-fns-buddhist-adapter date-fns@4.1.0 @date-io/date-fns@3.2.1
19
15
  ```
20
16
 
17
+ ## Peer Dependencies
18
+
19
+ This package requires the following peer dependencies:
20
+ - `@mui/material` ^7.3.4
21
+ - `@mui/x-date-pickers` ^8.14.1
22
+ - `react` ^19.2.0
23
+
21
24
  ## Usage
22
25
 
23
26
  ```typescript
24
27
  import { LocalizationProvider } from '@mui/x-date-pickers'
25
28
  import { DatePicker } from '@mui/x-date-pickers/DatePicker'
26
- import { th } from 'date-fns/locale/th'
29
+ import { th } from 'date-fns/locale'
27
30
  import AdapterDateFns from '@midseelee/date-fns-buddhist-adapter'
28
31
 
29
32
  function App() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midseelee/date-fns-buddhist-adapter",
3
3
  "repository": "git@github.com:Sh0ckWaveZero/date-fns-buddhist-adapter.git",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "description": "date-fns adapter with Buddhist years functionality",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -42,16 +42,20 @@
42
42
  "author": "midseelee",
43
43
  "license": "MIT",
44
44
  "engines": {
45
- "node": ">=8.16.0",
46
- "pnpm": ">=8.6.0"
45
+ "node": ">=18.0.0",
46
+ "bun": ">=1.0.0"
47
47
  },
48
48
  "dependencies": {
49
49
  "@date-io/date-fns": "3.2.1",
50
- "@mui/material": "7.3.4",
51
- "date-fns": "4.1.0",
52
- "react": "19.2.0"
50
+ "date-fns": "4.1.0"
51
+ },
52
+ "peerDependencies": {
53
+ "@mui/material": "^7.3.4",
54
+ "@mui/x-date-pickers": "^8.14.1",
55
+ "react": "^19.2.0"
53
56
  },
54
57
  "devDependencies": {
58
+ "@eslint/js": "9.37.0",
55
59
  "@tsconfig/node-lts": "22.0.2",
56
60
  "@types/jest": "30.0.0",
57
61
  "@types/node": "24.8.1",