@effected/schemastore 0.2.1 → 0.4.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.
@@ -11,7 +11,7 @@ import { Effect, Result, Schema } from "effect";
11
11
  *
12
12
  * @public
13
13
  */
14
- var CarrierDepthExceededError = class extends Schema.TaggedErrorClass()("CarrierDepthExceededError", {
14
+ var CarrierDepthExceededError = class extends Schema.TaggedError()("CarrierDepthExceededError", {
15
15
  /** JSON pointer (in the lowered document's coordinates) where the cap was hit. */
16
16
  path: Schema.String,
17
17
  /** The nesting cap that was exceeded. */
package/CanonicalJson.js CHANGED
@@ -13,7 +13,7 @@ import { Effect, Result, Schema } from "effect";
13
13
  *
14
14
  * @public
15
15
  */
16
- var NonJsonValueError = class extends Schema.TaggedErrorClass()("NonJsonValueError", {
16
+ var NonJsonValueError = class extends Schema.TaggedError()("NonJsonValueError", {
17
17
  /** JSON pointer to the offending value (`""` is the document root). */
18
18
  path: Schema.String,
19
19
  /** The `typeof`/structural description of the rejected value. */
@@ -32,7 +32,7 @@ var NonJsonValueError = class extends Schema.TaggedErrorClass()("NonJsonValueErr
32
32
  *
33
33
  * @public
34
34
  */
35
- var JsonDepthExceededError = class extends Schema.TaggedErrorClass()("JsonDepthExceededError", {
35
+ var JsonDepthExceededError = class extends Schema.TaggedError()("JsonDepthExceededError", {
36
36
  /** JSON pointer to the node where the cap was hit. */
37
37
  path: Schema.String,
38
38
  /** The nesting cap that was exceeded. */
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  Build, version, validate and lint SchemaStore-shaped Draft-07 JSON Schema documents from Effect Schema sources. Core effect already owns the generation pipeline: `Schema.toJsonSchemaDocument` produces Draft 2020-12 and `JsonSchema.toDocumentDraft07` lowers it. This package owns what [SchemaStore](https://www.schemastore.org) expects around that output — the publication shape (`$schema` + `$id` + root + `$defs`, with the `#/definitions` → `#/$defs` ref rewrite the lowering makes necessary), annotation carriers that keep the language-server keyword families alive through the lowering, catalog entries in both versioning modes, structural and hygiene lints, ajv strict-mode validation, canonical JSON text and content-comparing write-if-changed file IO. `SchemaPipeline` runs that whole emit loop over a list of targets, so a build script calls one function.
9
9
 
10
10
  > **Pre-release.** This package is part of the `@effected/*` kit, in pre-`1.0.0`
11
- > development against a single pinned Effect v4 beta. Packages graduate to
11
+ > development against a single pinned Effect v4 prerelease. Packages graduate to
12
12
  > `1.0.0` once Effect `4.0.0` ships. To hold your own `effect` versions at
13
13
  > exactly the ones the kit is built and tested against, install
14
14
  > [`@effected/pnpm-plugin-effect`](https://www.npmjs.com/package/@effected/pnpm-plugin-effect).
package/SchemaFile.js CHANGED
@@ -8,7 +8,7 @@ import { Context, Effect, FileSystem, Layer, Path, Schema } from "effect";
8
8
  *
9
9
  * @public
10
10
  */
11
- var SchemaFileReadError = class extends Schema.TaggedErrorClass()("SchemaFileReadError", {
11
+ var SchemaFileReadError = class extends Schema.TaggedError()("SchemaFileReadError", {
12
12
  /** The path that could not be read. */
13
13
  path: Schema.String,
14
14
  /** The underlying filesystem failure, preserved structurally. */
@@ -24,7 +24,7 @@ var SchemaFileReadError = class extends Schema.TaggedErrorClass()("SchemaFileRea
24
24
  *
25
25
  * @public
26
26
  */
27
- var SchemaFileNotFoundError = class extends Schema.TaggedErrorClass()("SchemaFileNotFoundError", {
27
+ var SchemaFileNotFoundError = class extends Schema.TaggedError()("SchemaFileNotFoundError", {
28
28
  /** The path where the schema file was expected. */
29
29
  path: Schema.String }) {
30
30
  get message() {
@@ -38,7 +38,7 @@ path: Schema.String }) {
38
38
  *
39
39
  * @public
40
40
  */
41
- var SchemaFileWriteError = class extends Schema.TaggedErrorClass()("SchemaFileWriteError", {
41
+ var SchemaFileWriteError = class extends Schema.TaggedError()("SchemaFileWriteError", {
42
42
  /** The path that could not be written. */
43
43
  path: Schema.String,
44
44
  /** The underlying filesystem failure, preserved structurally. */
package/SchemaPipeline.js CHANGED
@@ -45,7 +45,7 @@ var PipelineFinding = class extends Schema.Class("PipelineFinding")({
45
45
  *
46
46
  * @public
47
47
  */
48
- var SchemaGateError = class extends Schema.TaggedErrorClass()("SchemaGateError", {
48
+ var SchemaGateError = class extends Schema.TaggedError()("SchemaGateError", {
49
49
  /** The `$id` of the target that failed the gate. */
50
50
  $id: Schema.String,
51
51
  /** Every finding that blocked, in discovery order. */
@@ -14,7 +14,7 @@ import { Ajv } from "ajv";
14
14
  *
15
15
  * @public
16
16
  */
17
- var SchemaValidatorError = class extends Schema.TaggedErrorClass()("SchemaValidatorError", {
17
+ var SchemaValidatorError = class extends Schema.TaggedError()("SchemaValidatorError", {
18
18
  /** The underlying engine failure, preserved structurally. */
19
19
  cause: Schema.Defect() }) {
20
20
  get message() {
@@ -14,7 +14,7 @@ const isVersionLabel = (input) => {
14
14
  *
15
15
  * @public
16
16
  */
17
- var InvalidSchemaVersionError = class extends Schema.TaggedErrorClass()("InvalidSchemaVersionError", {
17
+ var InvalidSchemaVersionError = class extends Schema.TaggedError()("InvalidSchemaVersionError", {
18
18
  /** The raw input string that failed to parse. */
19
19
  input: Schema.String }) {
20
20
  get message() {
package/StoreDocument.js CHANGED
@@ -24,7 +24,7 @@ const DRAFT_07_META_SCHEMA = "http://json-schema.org/draft-07/schema#";
24
24
  *
25
25
  * @public
26
26
  */
27
- var SchemaConversionError = class extends Schema.TaggedErrorClass()("SchemaConversionError", {
27
+ var SchemaConversionError = class extends Schema.TaggedError()("SchemaConversionError", {
28
28
  /** The `$id` of the document that failed to build. */
29
29
  $id: Schema.String,
30
30
  /** The underlying conversion failure. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/schemastore",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "description": "Build, validate, version and publish SchemaStore-shaped Draft-07 JSON Schema documents from Effect Schema sources: document assembly, ajv strict-mode validation, structural lints, catalog entries, canonical JSON and a content-comparing emit pipeline.",
6
6
  "keywords": [
@@ -38,11 +38,11 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "dependencies": {
41
- "@effected/semver": "^0.3.2",
41
+ "@effected/semver": "^0.5.0",
42
42
  "ajv": "^8.20.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "effect": "4.0.0-beta.101"
45
+ "effect": "4.0.0-rc.109"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=24.11.0"