sanity-plugin-recurring-dates 1.4.1 → 2.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,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-recurring-dates",
3
- "version": "1.4.1",
3
+ "version": "2.0.0",
4
4
  "description": "Add a custom input component to your Sanity Studio to manage recurring dates (e.g. for events)",
5
5
  "keywords": [
6
6
  "sanity",
@@ -16,19 +16,19 @@
16
16
  },
17
17
  "license": "MIT",
18
18
  "author": "Tom Smith <tom@sanity.io>",
19
+ "sideEffects": false,
20
+ "type": "commonjs",
19
21
  "exports": {
20
22
  ".": {
21
- "types": "./dist/index.d.ts",
22
23
  "source": "./src/index.ts",
24
+ "import": "./dist/index.mjs",
23
25
  "require": "./dist/index.js",
24
- "import": "./dist/index.esm.js",
25
- "default": "./dist/index.esm.js"
26
+ "default": "./dist/index.js"
26
27
  },
27
28
  "./package.json": "./package.json"
28
29
  },
29
30
  "main": "./dist/index.js",
30
- "module": "./dist/index.esm.js",
31
- "source": "./src/index.ts",
31
+ "module": "./dist/index.mjs",
32
32
  "types": "./dist/index.d.ts",
33
33
  "files": [
34
34
  "dist",
@@ -37,59 +37,65 @@
37
37
  "v2-incompatible.js"
38
38
  ],
39
39
  "scripts": {
40
- "build": "run-s clean && plugin-kit verify-package --silent && pkg-utils build --strict && pkg-utils --strict",
40
+ "build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean",
41
41
  "clean": "rimraf dist",
42
42
  "format": "prettier --write --cache --ignore-unknown .",
43
43
  "link-watch": "plugin-kit link-watch",
44
44
  "lint": "eslint .",
45
- "prepublishOnly": "run-s build",
45
+ "prepublishOnly": "npm run build",
46
46
  "watch": "pkg-utils watch --strict",
47
47
  "prepare": "husky install"
48
48
  },
49
49
  "dependencies": {
50
- "@sanity/incompatible-plugin": "^1.0.4",
50
+ "@sanity/icons": ">= 2",
51
+ "@sanity/incompatible-plugin": "^1.0.5",
52
+ "@sanity/ui": "^1 || ^2.0.0-beta",
51
53
  "date-fns-tz": "^3.2.0",
52
54
  "lodash": "^4.17.21",
53
55
  "rrule": "^2.7.2",
54
56
  "sanity-plugin-utils": "^1.6.2"
55
57
  },
56
58
  "devDependencies": {
57
- "@commitlint/cli": "^18.6.1",
58
- "@commitlint/config-conventional": "^18.6.3",
59
- "@sanity/pkg-utils": "^3.3.8",
60
- "@sanity/plugin-kit": "^3.1.12",
61
- "@sanity/semantic-release-preset": "^4.1.8",
62
- "@types/react": "^18.3.5",
63
- "@typescript-eslint/eslint-plugin": "^6.21.0",
64
- "@typescript-eslint/parser": "^6.21.0",
65
- "eslint": "^8.57.0",
66
- "eslint-config-prettier": "^9.1.0",
67
- "eslint-config-sanity": "^7.1.2",
68
- "eslint-plugin-prettier": "^5.2.1",
69
- "eslint-plugin-react": "^7.35.2",
70
- "eslint-plugin-react-hooks": "^4.6.2",
59
+ "@commitlint/cli": "^19.8.0",
60
+ "@commitlint/config-conventional": "^19.8.0",
61
+ "@sanity/pkg-utils": "^7.1.0",
62
+ "@sanity/plugin-kit": "^4.0.19",
63
+ "@sanity/semantic-release-preset": "^5.0.0",
64
+ "@types/lodash": "^4.17.16",
65
+ "@types/react": "^19",
66
+ "@types/react-dom": "^19",
67
+ "@typescript-eslint/eslint-plugin": "^8.26.1",
68
+ "@typescript-eslint/parser": "^8.26.1",
69
+ "eslint": "^8.57.1",
70
+ "eslint-config-prettier": "^10.1.1",
71
+ "eslint-config-sanity": "^7.1.4",
72
+ "eslint-plugin-prettier": "^5.2.3",
73
+ "eslint-plugin-react": "^7.37.4",
74
+ "eslint-plugin-react-hooks": "^5.2.0",
71
75
  "eslint-plugin-simple-import-sort": "^10.0.0",
72
- "husky": "^8.0.3",
73
- "lint-staged": "^15.2.0",
76
+ "husky": "^9.1.7",
77
+ "lint-staged": "^15.5.0",
74
78
  "npm-run-all2": "^5.0.0",
75
- "prettier": "^3.3.3",
76
- "prettier-plugin-packagejson": "^2.5.2",
77
- "react": "^18.3.1",
78
- "react-dom": "^18.3.1",
79
- "react-is": "^18.3.1",
79
+ "prettier": "^3.5.3",
80
+ "prettier-plugin-packagejson": "^2.5.10",
81
+ "react": "^19.0.0",
82
+ "react-dom": "^19.0.0",
83
+ "react-is": "^19.0.0",
80
84
  "rimraf": "^5.0.1",
81
- "sanity": "^3.57.0",
82
- "styled-components": "^6.1.13",
83
- "typescript": "^5.5.4"
85
+ "sanity": "^3.79.0",
86
+ "styled-components": "^6.1.15",
87
+ "typescript": "^5.8.2"
84
88
  },
85
89
  "peerDependencies": {
86
90
  "@sanity/icons": ">= 2",
87
91
  "@sanity/ui": "^1 || ^2.0.0-beta",
88
92
  "@sanity/util": "^3.57.0",
89
- "react": "^18",
93
+ "react": "^18.3 || ^19",
94
+ "react-dom": "^18.3 || ^19",
95
+ "react-is": "^18.3 || ^19",
90
96
  "sanity": "^3"
91
97
  },
92
98
  "engines": {
93
- "node": ">=14"
99
+ "node": ">=18"
94
100
  }
95
101
  }
@@ -38,7 +38,7 @@ export function Monthly(props: MonthlyProps): React.JSX.Element {
38
38
  if (!weekNo) {
39
39
  setByweekday(null)
40
40
  }
41
- }, [])
41
+ })
42
42
 
43
43
  return (
44
44
  <Flex gap={2} align="center">
package/src/utils.ts CHANGED
@@ -4,6 +4,7 @@ export const validateRRuleString = (recurrence: string): boolean => {
4
4
  try {
5
5
  rrulestr(recurrence)
6
6
  return false
7
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
8
  } catch (e) {
8
9
  return true
9
10
  }