@sanity/schema 4.19.1-next.9 → 4.20.0-next.41

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/lib/index.js CHANGED
@@ -1,8 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: !0 });
3
- var Rule = require("./_chunks-cjs/Rule.js");
4
- const Schema = Rule.Schema;
5
- exports.Rule = Rule.Rule;
6
- exports.default = Rule.DeprecatedDefaultSchema;
7
- exports.Schema = Schema;
1
+ import { DeprecatedDefaultSchema, Schema as Schema$1 } from "./_chunks-es/Rule.js";
2
+ import { Rule } from "./_chunks-es/Rule.js";
3
+ const Schema = Schema$1;
4
+ export {
5
+ Rule,
6
+ Schema,
7
+ DeprecatedDefaultSchema as default
8
+ };
8
9
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/_exports/index.ts"],"sourcesContent":["import {DeprecatedDefaultSchema, Schema as NamedSchema} from '../legacy/Schema'\n\nexport default DeprecatedDefaultSchema\nexport const Schema = NamedSchema\nexport {Rule} from '../legacy/Rule'\nexport {type SchemaValidationResult} from '../sanity/typedefs'\n"],"names":["NamedSchema"],"mappings":";;;AAGO,MAAM,SAASA,KAAAA;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/_exports/index.ts"],"sourcesContent":["import {DeprecatedDefaultSchema, Schema as NamedSchema} from '../legacy/Schema'\n\nexport default DeprecatedDefaultSchema\nexport const Schema = NamedSchema\nexport {Rule} from '../legacy/Rule'\nexport {type SchemaValidationResult} from '../sanity/typedefs'\n"],"names":["NamedSchema"],"mappings":";;AAGO,MAAM,SAASA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/schema",
3
- "version": "4.19.1-next.9+4fe55a3663",
3
+ "version": "4.20.0-next.41+f1182f50e7",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "sanity",
@@ -22,24 +22,19 @@
22
22
  "license": "MIT",
23
23
  "author": "Sanity.io <hello@sanity.io>",
24
24
  "sideEffects": false,
25
- "type": "commonjs",
25
+ "type": "module",
26
26
  "exports": {
27
27
  ".": {
28
28
  "source": "./src/_exports/index.ts",
29
- "import": "./lib/index.mjs",
30
- "require": "./lib/index.js",
31
29
  "default": "./lib/index.js"
32
30
  },
33
31
  "./_internal": {
34
32
  "source": "./src/_exports/_internal.ts",
35
- "import": "./lib/_internal.mjs",
36
- "require": "./lib/_internal.js",
37
33
  "default": "./lib/_internal.js"
38
34
  },
39
35
  "./package.json": "./package.json"
40
36
  },
41
37
  "main": "./lib/index.js",
42
- "module": "./lib/index.mjs",
43
38
  "types": "./lib/index.d.ts",
44
39
  "typesVersions": {
45
40
  "*": {
@@ -60,25 +55,26 @@
60
55
  "leven": "^3.1.0",
61
56
  "lodash": "^4.17.21",
62
57
  "object-inspect": "^1.13.4",
63
- "@sanity/types": "4.19.1-next.9+4fe55a3663"
58
+ "@sanity/types": "4.20.0-next.41+f1182f50e7"
64
59
  },
65
60
  "devDependencies": {
66
61
  "@sanity/icons": "^3.7.4",
67
- "@sanity/pkg-utils": "^8.1.13",
62
+ "@sanity/pkg-utils": "^9.2.0",
68
63
  "@types/lodash": "^4.17.20",
69
64
  "@types/object-inspect": "^1.13.0",
70
65
  "@types/react": "^19.1.9",
66
+ "@typescript/native-preview": "7.0.0-dev.20251126.1",
71
67
  "eslint": "^9.37.0",
72
68
  "rimraf": "^5.0.10",
73
69
  "vitest": "^3.2.4",
74
- "@repo/eslint-config": "4.19.1-next.9+4fe55a3663",
75
- "@repo/package.config": "4.19.1-next.9+4fe55a3663",
76
- "@repo/test-config": "4.19.1-next.9+4fe55a3663",
77
- "@repo/tsconfig": "4.19.1-next.9+4fe55a3663"
70
+ "@repo/eslint-config": "4.20.0-next.41+f1182f50e7",
71
+ "@repo/package.config": "4.20.0-next.41+f1182f50e7",
72
+ "@repo/test-config": "4.20.0-next.41+f1182f50e7",
73
+ "@repo/tsconfig": "4.20.0-next.41+f1182f50e7"
78
74
  },
79
75
  "scripts": {
80
76
  "build": "pnpm clean && pkg-utils build --strict --check --clean",
81
- "check:types": "(cd ../../.. && tsc --project packages/@sanity/schema/tsconfig.lib.json --erasableSyntaxOnly)",
77
+ "check:types": "(cd ../../.. && tsgo --project packages/@sanity/schema/tsconfig.lib.json --erasableSyntaxOnly)",
82
78
  "clean": "rimraf _internal.js lib",
83
79
  "lint": "eslint .",
84
80
  "test": "vitest run",