@takeshape/schema 9.38.1 → 9.40.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.
Files changed (109) hide show
  1. package/dist/content-schema-transform.d.ts +1 -1
  2. package/dist/content-schema-transform.d.ts.map +1 -1
  3. package/dist/content-schema-transform.js +1 -1
  4. package/dist/migration/index.d.ts +1 -0
  5. package/dist/migration/index.d.ts.map +1 -1
  6. package/dist/migration/index.js +4 -1
  7. package/dist/migration/to/v3.32.0.d.ts +5 -0
  8. package/dist/migration/to/v3.32.0.d.ts.map +1 -0
  9. package/dist/migration/to/v3.32.0.js +107 -0
  10. package/dist/migration/types.d.ts +1 -3
  11. package/dist/migration/types.d.ts.map +1 -1
  12. package/dist/mocks.d.ts +3 -2
  13. package/dist/mocks.d.ts.map +1 -1
  14. package/dist/mocks.js +14 -0
  15. package/dist/project-schema/index.d.ts +4 -1
  16. package/dist/project-schema/index.d.ts.map +1 -1
  17. package/dist/project-schema/index.js +20 -3
  18. package/dist/project-schema/latest.d.ts +79 -88
  19. package/dist/project-schema/latest.d.ts.map +1 -1
  20. package/dist/project-schema/migrate.d.ts.map +1 -1
  21. package/dist/project-schema/migrate.js +4 -0
  22. package/dist/project-schema/v3.31.0.d.ts +1 -1
  23. package/dist/project-schema/v3.31.0.d.ts.map +1 -1
  24. package/dist/project-schema/v3.32.0.d.ts +1440 -0
  25. package/dist/project-schema/v3.32.0.d.ts.map +1 -0
  26. package/dist/project-schema/v3.32.0.js +5 -0
  27. package/dist/refs.d.ts +20 -1
  28. package/dist/refs.d.ts.map +1 -1
  29. package/dist/refs.js +90 -17
  30. package/dist/schema-util.d.ts +12 -10
  31. package/dist/schema-util.d.ts.map +1 -1
  32. package/dist/schema-util.js +31 -23
  33. package/dist/schemas/index.d.ts +2 -2
  34. package/dist/schemas/index.d.ts.map +1 -1
  35. package/dist/schemas/index.js +6 -4
  36. package/dist/schemas/index.ts +4 -2
  37. package/dist/schemas/project-schema/latest.json +59 -67
  38. package/dist/schemas/project-schema/v3.31.0.json +1 -4
  39. package/dist/schemas/project-schema/v3.32.0.json +3081 -0
  40. package/dist/schemas/project-schema.json +3 -0
  41. package/dist/template-shapes/templates.js +1 -1
  42. package/dist/template-shapes/where.js +2 -2
  43. package/dist/types/types.d.ts +6 -4
  44. package/dist/types/types.d.ts.map +1 -1
  45. package/dist/types/utils.d.ts +4 -2
  46. package/dist/types/utils.d.ts.map +1 -1
  47. package/dist/types/utils.js +22 -1
  48. package/dist/util/api-indexing.d.ts +4 -5
  49. package/dist/util/api-indexing.d.ts.map +1 -1
  50. package/dist/util/api-indexing.js +25 -16
  51. package/dist/util/merge.js +1 -1
  52. package/dist/util/patch-schema.d.ts.map +1 -1
  53. package/dist/util/patch-schema.js +1 -1
  54. package/dist/validate.d.ts.map +1 -1
  55. package/dist/validate.js +97 -31
  56. package/es/content-schema-transform.js +1 -1
  57. package/es/migration/index.js +3 -1
  58. package/es/migration/to/v3.32.0.js +98 -0
  59. package/es/mocks.js +12 -0
  60. package/es/project-schema/index.js +3 -1
  61. package/es/project-schema/migrate.js +5 -1
  62. package/es/project-schema/v3.32.0.js +1 -0
  63. package/es/refs.js +78 -17
  64. package/es/schema-util.js +24 -17
  65. package/es/schemas/index.js +4 -3
  66. package/es/schemas/index.ts +4 -2
  67. package/es/schemas/project-schema/latest.json +59 -67
  68. package/es/schemas/project-schema/v3.31.0.json +1 -4
  69. package/es/schemas/project-schema/v3.32.0.json +3081 -0
  70. package/es/schemas/project-schema.json +3 -0
  71. package/es/template-shapes/templates.js +2 -2
  72. package/es/template-shapes/where.js +3 -3
  73. package/es/types/utils.js +15 -0
  74. package/es/util/api-indexing.js +23 -16
  75. package/es/util/merge.js +1 -1
  76. package/es/util/patch-schema.js +1 -1
  77. package/es/validate.js +96 -31
  78. package/examples/latest/betzino.json +1 -1
  79. package/examples/latest/blog-schema.json +1 -1
  80. package/examples/latest/brewery-schema.json +1 -1
  81. package/examples/latest/complex-project-schema.json +1 -1
  82. package/examples/latest/complex-schema.json +1 -1
  83. package/examples/latest/fabric-ecommerce.json +1 -1
  84. package/examples/latest/frank-and-fred-schema.json +1 -1
  85. package/examples/latest/klirr-schema.json +1 -1
  86. package/examples/latest/massive-schema.json +1 -1
  87. package/examples/latest/mill-components-schema.json +1 -1
  88. package/examples/latest/one-earth.json +1 -1
  89. package/examples/latest/pet-oneof-array.json +1 -1
  90. package/examples/latest/post-schema.json +1 -1
  91. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  92. package/examples/latest/real-world-schema.json +1 -1
  93. package/examples/latest/recursive-repeater-schema.json +1 -1
  94. package/examples/latest/recursive-schema.json +1 -1
  95. package/examples/latest/rick-and-morty-ast.json +1 -1
  96. package/examples/latest/rick-and-morty-graphql.json +1 -1
  97. package/examples/latest/rick-and-morty-rest.json +1 -1
  98. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  99. package/examples/latest/shape-books-v3_2_0.json +1 -1
  100. package/examples/latest/shape-books.json +1 -1
  101. package/examples/latest/shopify-lookbook.json +1 -1
  102. package/examples/latest/shopify-product-2022-07.json +1 -1
  103. package/examples/latest/shopify-product-2023-04.json +1 -1
  104. package/examples/latest/shopify-store-with-widget.json +1 -1
  105. package/examples/latest/stripe-product-runtime-schema.json +22 -23
  106. package/examples/latest/stripe-starter-resolved.json +1 -1
  107. package/examples/latest/user-schema-no-required.json +1 -1
  108. package/examples/latest/user-schema-with-defaults.json +1 -1
  109. package/package.json +5 -5
@@ -29107,5 +29107,5 @@
29107
29107
  }
29108
29108
  }
29109
29109
  },
29110
- "schemaVersion": "3.31.0"
29110
+ "schemaVersion": "3.32.0"
29111
29111
  }
@@ -165,6 +165,6 @@
165
165
  }
166
166
  }
167
167
  },
168
- "schemaVersion": "3.31.0",
168
+ "schemaVersion": "3.32.0",
169
169
  "services": {}
170
170
  }
@@ -190,6 +190,6 @@
190
190
  }
191
191
  }
192
192
  },
193
- "schemaVersion": "3.31.0",
193
+ "schemaVersion": "3.32.0",
194
194
  "services": {}
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "9.38.1",
3
+ "version": "9.40.0",
4
4
  "description": "TakeShape Schema",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -28,9 +28,9 @@
28
28
  "p-reduce": "^2.1.0",
29
29
  "semver": "^7.3.2",
30
30
  "tiny-invariant": "^1.2.0",
31
- "@takeshape/errors": "9.38.1",
32
- "@takeshape/util": "9.38.1",
33
- "@takeshape/json-schema": "9.38.1"
31
+ "@takeshape/errors": "9.40.0",
32
+ "@takeshape/util": "9.40.0",
33
+ "@takeshape/json-schema": "9.40.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@takeshape/json-schema-to-typescript": "^11.0.0",
@@ -46,7 +46,7 @@
46
46
  "meow": "^9.0.0",
47
47
  "p-map": "^5.0.0",
48
48
  "shortid": "^2.2.15",
49
- "@takeshape/typescript-jest-junit-reporter": "9.38.1"
49
+ "@takeshape/typescript-jest-junit-reporter": "9.40.0"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=16"