@xyo-network/schema-payload-plugin 5.3.20 → 5.3.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/schema-payload-plugin",
3
- "version": "5.3.20",
3
+ "version": "5.3.24",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,22 +30,28 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src",
34
33
  "!**/*.bench.*",
35
34
  "!**/*.spec.*",
36
- "!**/*.test.*"
35
+ "!**/*.test.*",
36
+ "README.md"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/payload-model": "~5.3.20",
40
- "@xyo-network/payload-plugin": "~5.3.20"
39
+ "@xyo-network/payload-model": "~5.3.24",
40
+ "@xyo-network/payload-plugin": "~5.3.24"
41
41
  },
42
42
  "devDependencies": {
43
- "@xylabs/sdk-js": "^5.0.90",
44
- "@xylabs/ts-scripts-common": "~7.5.6",
45
- "@xylabs/ts-scripts-yarn3": "~7.5.6",
46
- "@xylabs/tsconfig": "~7.5.6",
47
- "@xylabs/vitest-extended": "~5.0.90",
43
+ "@opentelemetry/api": "^1.9.1",
44
+ "@types/node": "^25.5.0",
45
+ "@xylabs/sdk-js": "^5.0.93",
46
+ "@xylabs/ts-scripts-common": "~7.6.16",
47
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
48
+ "@xylabs/tsconfig": "~7.6.16",
49
+ "@xylabs/vitest-extended": "~5.0.93",
50
+ "acorn": "^8.16.0",
51
+ "axios": "^1.14.0",
52
+ "esbuild": "^0.28.0",
48
53
  "typescript": "~5.9.3",
54
+ "vite": "^8.0.3",
49
55
  "vitest": "~4.1.2",
50
56
  "zod": "^4.3.6"
51
57
  },
@@ -56,4 +62,4 @@
56
62
  "publishConfig": {
57
63
  "access": "public"
58
64
  }
59
- }
65
+ }
package/src/Payload.ts DELETED
@@ -1,36 +0,0 @@
1
- import type { Payload } from '@xyo-network/payload-model'
2
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
3
-
4
- import { SchemaSchema } from './Schema.ts'
5
-
6
- export type SchemaPayload = Payload<{
7
- /**
8
- * The schema definition
9
- */
10
- definition: {
11
- [key: string]: unknown
12
- $id?: string
13
- }
14
- /**
15
- * The schema this schema extends (if any)
16
- */
17
- extends?: string
18
-
19
- /** @deprecated use definition.$id instead */
20
- name?: string
21
-
22
- /**
23
- * The version of the schema major * 1,000,000 + minor * 1,000 + patch
24
- */
25
- version?: number
26
- }, SchemaSchema>
27
-
28
- /**
29
- * Identity function for determining if an object is an Schema
30
- */
31
- export const isSchemaPayload = isPayloadOfSchemaType<SchemaPayload>(SchemaSchema)
32
-
33
- /**
34
- * Identity function for determining if an object is an Schema with sources
35
- */
36
- export const isSchemaPayloadWithSources = isPayloadOfSchemaTypeWithSources<SchemaPayload>(SchemaSchema)
package/src/Plugin.ts DELETED
@@ -1,11 +0,0 @@
1
- import { createPayloadPlugin } from '@xyo-network/payload-plugin'
2
-
3
- import type { SchemaPayload } from './Payload.ts'
4
- import { SchemaSchema } from './Schema.ts'
5
- import { schemaPayloadTemplate } from './Template.ts'
6
-
7
- export const SchemaPayloadPlugin = () =>
8
- createPayloadPlugin<SchemaPayload>({
9
- schema: SchemaSchema,
10
- template: schemaPayloadTemplate,
11
- })
package/src/Schema.ts DELETED
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export const SchemaSchema = asSchema('network.xyo.schema', true)
4
- export type SchemaSchema = typeof SchemaSchema
package/src/Template.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { SchemaPayload } from './Payload.ts'
2
- import { SchemaSchema } from './Schema.ts'
3
- export const schemaPayloadTemplate = (): SchemaPayload => ({
4
- definition: {
5
- $id: '',
6
- $schema: 'http://json-schema.org/draft-07/schema#',
7
- },
8
- schema: SchemaSchema,
9
- })
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './Payload.ts'
2
- export { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin.ts'
3
- export * from './Schema.ts'
4
- export * from './Template.ts'