@sanity/schema 6.7.0-next.36 → 6.7.0-next.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.
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as SchemaValidationResult, c as DeprecatedDefaultSchema, l as Schema$2 } from "./typedefs-LNWlFyVi.js";
1
+ import { a as SchemaValidationResult, c as DeprecatedDefaultSchema, l as Schema$2 } from "./_chunks-dts/typedefs.js";
2
2
  import { RuleClass } from "@sanity/types";
3
3
  /**
4
4
  * Core Rule implementation without validation logic.
@@ -31,5 +31,4 @@ declare const DEFAULT_ANNOTATIONS: {
31
31
  }[];
32
32
  }[];
33
33
  declare const Schema: typeof Schema$2;
34
- export { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS, Rule, Schema, type SchemaValidationResult, DeprecatedDefaultSchema as default };
35
- //# sourceMappingURL=index.d.ts.map
34
+ export { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS, Rule, Schema, type SchemaValidationResult, DeprecatedDefaultSchema as default };
package/lib/index.js CHANGED
@@ -1,6 +1,11 @@
1
- import { i as DEFAULT_DECORATORS, n as Schema$1, r as DEFAULT_ANNOTATIONS, t as DeprecatedDefaultSchema, u as Rule } from "./Schema-B6NrqInd.js";
2
- var _exports_default = DeprecatedDefaultSchema;
1
+ import { Schema as Schema$1, DeprecatedDefaultSchema } from "./_chunks-es/Schema.js";
2
+ import { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS, Rule } from "./_chunks-es/Schema.js";
3
3
  const Schema = Schema$1;
4
- export { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS, Rule, Schema, _exports_default as default };
5
-
6
- //# sourceMappingURL=index.js.map
4
+ export {
5
+ DEFAULT_ANNOTATIONS,
6
+ DEFAULT_DECORATORS,
7
+ Rule,
8
+ Schema,
9
+ DeprecatedDefaultSchema as default
10
+ };
11
+ //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["NamedSchema"],"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 {DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS} from '../legacy/types/blocks/defaults'\nexport {type SchemaValidationResult} from '../sanity/typedefs'\n"],"mappings":";AAEA,IAAA,mBAAe;AACf,MAAa,SAASA"}
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 {DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS} from '../legacy/types/blocks/defaults'\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": "6.7.0-next.36",
3
+ "version": "6.7.0-next.5",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "cms",
@@ -26,6 +26,7 @@
26
26
  ],
27
27
  "type": "module",
28
28
  "sideEffects": false,
29
+ "main": "./lib/index.js",
29
30
  "types": "./lib/index.d.ts",
30
31
  "typesVersions": {
31
32
  "*": {
@@ -44,35 +45,37 @@
44
45
  "@sanity/generate-help-url": "^4.0.0",
45
46
  "arrify": "^3.0.0",
46
47
  "get-it": "^8.8.0",
47
- "groq-js": "^2.0.0",
48
+ "groq-js": "^1.30.3",
48
49
  "humanize-list": "^1.0.1",
49
50
  "leven": "^4.1.0",
50
51
  "lodash-es": "^4.18.1",
51
52
  "object-inspect": "^1.13.4",
52
- "@sanity/types": "6.7.0-next.36+c8813c5fcb"
53
+ "@sanity/types": "6.7.0-next.5+376f81defc"
53
54
  },
54
55
  "devDependencies": {
55
- "@sanity/icons": "^5.2.1",
56
+ "@sanity/icons": "^5.2.0",
57
+ "@sanity/pkg-utils": "^11.0.13",
56
58
  "@types/lodash-es": "^4.17.12",
57
59
  "@types/object-inspect": "^1.13.0",
58
60
  "@types/react": "^19.2.17",
59
61
  "@typescript/native-preview": "beta",
60
- "tsdown": "^0.22.13",
62
+ "rimraf": "^6.1.3",
61
63
  "vite": "^8.1.5",
62
64
  "vitest": "^4.1.10",
63
- "@repo/test-config": "6.7.0-next.36+c8813c5fcb",
64
- "@repo/tsconfig": "6.7.0-next.36+c8813c5fcb",
65
- "@repo/tsdown.config": "6.7.0-next.36+c8813c5fcb"
65
+ "@repo/tsconfig": "6.7.0-next.5+376f81defc",
66
+ "@repo/package.config": "6.7.0-next.5+376f81defc",
67
+ "@repo/test-config": "6.7.0-next.5+376f81defc"
66
68
  },
67
69
  "browserslist": [
68
70
  "node >=22.12",
69
71
  "baseline 2024"
70
72
  ],
71
73
  "scripts": {
72
- "build": "tsdown",
74
+ "build": "pnpm clean && pkg-utils build --strict --check --clean",
73
75
  "check:types": "(cd ../../.. && tsgo --project packages/@sanity/schema/tsconfig.lib.json --erasableSyntaxOnly)",
76
+ "clean": "rimraf _internal.js lib",
74
77
  "test": "vitest run",
75
78
  "test:watch": "vitest watch",
76
- "watch": "tsdown --watch"
79
+ "watch": "pkg-utils watch"
77
80
  }
78
81
  }