@sanity/schema 6.7.0-next.5 → 6.7.0-next.51

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