@shaclmate/compiler 4.0.15 → 4.0.16

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.
@@ -1,7 +1,7 @@
1
1
  import TermMap from "@rdfjs/term-map";
2
+ import { Resource } from "@rdfx/resource";
2
3
  import { dash } from "@tpluscode/rdf-ns-builders";
3
4
  import { Either } from "purify-ts";
4
- import { Resource } from "rdfjs-resource";
5
5
  import { invariant } from "ts-invariant";
6
6
  import { ShapeStack } from "./_ShapesGraphToAstTransformer/ShapeStack.js";
7
7
  import { transformShapeToAstType } from "./_ShapesGraphToAstTransformer/transformShapeToAstType.js";
@@ -1,6 +1,6 @@
1
1
  import TermSet from "@rdfjs/term-set";
2
+ import { Resource } from "@rdfx/resource";
2
3
  import { Maybe } from "purify-ts";
3
- import { Resource } from "rdfjs-resource";
4
4
  import { invariant } from "ts-invariant";
5
5
  import { BlankNodeType } from "./BlankNodeType.js";
6
6
  import { IdentifierType } from "./IdentifierType.js";
@@ -1,7 +1,7 @@
1
1
  import type { BlankNode, NamedNode } from "@rdfjs/types";
2
+ import { PropertyPath } from "@rdfx/resource";
2
3
  import type { NodeKind } from "@shaclmate/shacl-ast";
3
4
  import type { Maybe } from "purify-ts";
4
- import { PropertyPath } from "rdfjs-resource";
5
5
  import type { IdentifierMintingStrategy } from "../enums/IdentifierMintingStrategy.js";
6
6
  import type { TsFeature } from "../enums/TsFeature.js";
7
7
  import type { TsObjectDeclarationType } from "../enums/TsObjectDeclarationType.js";
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { PropertyPath, Resource } from "rdfjs-resource";
7
+ import { PropertyPath, Resource } from "@rdfx/resource";
8
8
  import genericToposort from "toposort";
9
9
  import { invariant } from "ts-invariant";
10
10
  import { Memoize } from "typescript-memoize";
@@ -1,4 +1,4 @@
1
- import { Resource } from "rdfjs-resource";
1
+ import { Resource } from "@rdfx/resource";
2
2
  function termToJson(term) {
3
3
  switch (term.termType) {
4
4
  case "BlankNode":
@@ -4,8 +4,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
+ import { LiteralDecoder } from "@rdfx/literal";
7
8
  import { Maybe, NonEmptyList } from "purify-ts";
8
- import { LiteralDecoder } from "rdfjs-resource";
9
9
  import { invariant } from "ts-invariant";
10
10
  import { Memoize } from "typescript-memoize";
11
11
  import { AbstractContainerType } from "./AbstractContainerType.js";
@@ -4,9 +4,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
+ import { PropertyPath } from "@rdfx/resource";
7
8
  import { pascalCase } from "change-case";
8
9
  import { Maybe } from "purify-ts";
9
- import { PropertyPath } from "rdfjs-resource";
10
10
  import { Memoize } from "typescript-memoize";
11
11
  import { NamedObjectType_objectSetMethodNames } from "./_NamedObjectType/NamedObjectType_objectSetMethodNames.js";
12
12
  import { NamedObjectType_sparqlConstructQueryFunctionDeclaration } from "./_NamedObjectType/NamedObjectType_sparqlConstructQueryFunctionDeclaration.js";
@@ -1,9 +1,9 @@
1
1
  import TermMap from "@rdfjs/term-map";
2
2
  import TermSet from "@rdfjs/term-set";
3
+ import { LiteralDecoder, literalDatatypeDefinitions } from "@rdfx/literal";
3
4
  import base62 from "@sindresorhus/base62";
4
5
  import { rdf, xsd } from "@tpluscode/rdf-ns-builders";
5
6
  import { Maybe } from "purify-ts";
6
- import { LiteralDecoder, literalDatatypeDefinitions } from "rdfjs-resource";
7
7
  import reservedTsIdentifiers_ from "reserved-identifiers";
8
8
  import { invariant } from "ts-invariant";
9
9
  import * as ast from "../../ast/index.js";
@@ -1,5 +1,5 @@
1
+ import type { PropertyPath } from "@rdfx/resource";
1
2
  import { Maybe } from "purify-ts";
2
- import type { PropertyPath } from "rdfjs-resource";
3
3
  import type { Type } from "../Type.js";
4
4
  import { type Code } from "../ts-poet-wrapper.js";
5
5
  import { AbstractProperty } from "./AbstractProperty.js";
@@ -22,15 +22,15 @@ export const imports = {
22
22
  GraphQLUnionType: imp("GraphQLUnionType@graphql"),
23
23
  Left: imp("Left@purify-ts"),
24
24
  Literal: imp("Literal@@rdfjs/types"),
25
- LiteralFactory: imp("LiteralFactory@rdfjs-resource"),
25
+ LiteralFactory: imp("LiteralFactory@@rdfx/literal"),
26
26
  Maybe: imp("Maybe@purify-ts"),
27
27
  NamedNode: imp("NamedNode@@rdfjs/types"),
28
28
  NonEmptyList: imp("NonEmptyList@purify-ts"),
29
29
  Quad: imp("Quad@@rdfjs/types"),
30
30
  Quad_Graph: imp("Quad_Graph@@rdfjs/types"),
31
- RdfjsResourcePropertyPath: imp("PropertyPath:RdfjsResourcePropertyPath@rdfjs-resource"),
32
- Resource: imp("Resource@rdfjs-resource"),
33
- ResourceSet: imp("ResourceSet@rdfjs-resource"),
31
+ RdfjsResourcePropertyPath: imp("PropertyPath:RdfjsResourcePropertyPath@@rdfx/resource"),
32
+ Resource: imp("Resource@@rdfx/resource"),
33
+ ResourceSet: imp("ResourceSet@@rdfx/resource"),
34
34
  Right: imp("Right@purify-ts"),
35
35
  sha256: imp("sha256@js-sha256"),
36
36
  sparqljs: imp("sparqljs*sparqljs"),
@@ -1,6 +1,6 @@
1
1
  import type { BlankNode, DatasetCore, Literal, NamedNode, Quad_Graph, Variable } from "@rdfjs/types";
2
+ import { PropertyPath as RdfjsResourcePropertyPath, Resource, ResourceSet } from "@rdfx/resource";
2
3
  import { Either, Maybe } from "purify-ts";
3
- import { PropertyPath as RdfjsResourcePropertyPath, Resource, ResourceSet } from "rdfjs-resource";
4
4
  interface $BooleanFilter {
5
5
  readonly value?: boolean;
6
6
  }
@@ -170,7 +170,7 @@ export declare namespace PropertyShape {
170
170
  type $Identifier = BlankNode | NamedNode;
171
171
  namespace $Identifier {
172
172
  const fromString: typeof $identifierFromString;
173
- const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
173
+ const toString: typeof import("@rdfx/resource/dist/Identifier.js").Identifier.toString;
174
174
  }
175
175
  function $filter(filter: PropertyShape.$Filter, value: PropertyShape): boolean;
176
176
  type $Filter = {
@@ -662,7 +662,7 @@ export declare namespace PropertyGroup {
662
662
  type $Identifier = BlankNode | NamedNode;
663
663
  namespace $Identifier {
664
664
  const fromString: typeof $identifierFromString;
665
- const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
665
+ const toString: typeof import("@rdfx/resource/dist/Identifier.js").Identifier.toString;
666
666
  }
667
667
  function $filter(filter: PropertyGroup.$Filter, value: PropertyGroup): boolean;
668
668
  type $Filter = {
@@ -742,7 +742,7 @@ export declare namespace Ontology {
742
742
  type $Identifier = BlankNode | NamedNode;
743
743
  namespace $Identifier {
744
744
  const fromString: typeof $identifierFromString;
745
- const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
745
+ const toString: typeof import("@rdfx/resource/dist/Identifier.js").Identifier.toString;
746
746
  }
747
747
  function $filter(filter: Ontology.$Filter, value: Ontology): boolean;
748
748
  type $Filter = {
@@ -947,7 +947,7 @@ export declare namespace NodeShape {
947
947
  type $Identifier = BlankNode | NamedNode;
948
948
  namespace $Identifier {
949
949
  const fromString: typeof $identifierFromString;
950
- const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
950
+ const toString: typeof import("@rdfx/resource/dist/Identifier.js").Identifier.toString;
951
951
  }
952
952
  function $filter(filter: NodeShape.$Filter, value: NodeShape): boolean;
953
953
  type $Filter = {
@@ -1534,7 +1534,7 @@ export declare namespace Shape {
1534
1534
  type $Identifier = BlankNode | NamedNode;
1535
1535
  namespace $Identifier {
1536
1536
  const fromString: typeof $identifierFromString;
1537
- const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
1537
+ const toString: typeof import("@rdfx/resource/dist/Identifier.js").Identifier.toString;
1538
1538
  }
1539
1539
  const $schema: {
1540
1540
  readonly kind: "NamedObjectUnion";
@@ -2715,7 +2715,7 @@ export declare namespace $Object {
2715
2715
  type $Identifier = BlankNode | NamedNode;
2716
2716
  namespace $Identifier {
2717
2717
  const fromString: typeof $identifierFromString;
2718
- const toString: typeof import("rdfjs-resource/dist/Identifier.js").Identifier.toString;
2718
+ const toString: typeof import("@rdfx/resource/dist/Identifier.js").Identifier.toString;
2719
2719
  }
2720
2720
  const $schema: {
2721
2721
  readonly kind: "NamedObjectUnion";
@@ -1,7 +1,8 @@
1
1
  import dataFactory from "@rdfjs/data-model";
2
2
  import datasetFactory from "@rdfjs/dataset";
3
+ import { LiteralFactory } from "@rdfx/literal";
4
+ import { PropertyPath as RdfjsResourcePropertyPath, Resource, ResourceSet, } from "@rdfx/resource";
3
5
  import { Either, Left, Maybe, Right } from "purify-ts";
4
- import { LiteralFactory, PropertyPath as RdfjsResourcePropertyPath, Resource, ResourceSet, } from "rdfjs-resource";
5
6
  function $filterArray(filterItem) {
6
7
  return (filter, values) => {
7
8
  for (const value of values) {
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "dependencies": {
3
- "@shaclmate/shacl-ast": "4.0.15",
3
+ "@shaclmate/shacl-ast": "4.0.16",
4
4
  "@rdfjs/data-model": "~2.1.1",
5
5
  "@rdfjs/dataset": "~2.0.2",
6
6
  "@rdfjs/prefix-map": "~0.1.2",
7
7
  "@rdfjs/term-map": "~2.0.2",
8
8
  "@rdfjs/term-set": "~2.0.3",
9
9
  "@rdfjs/types": "~2.0.1",
10
+ "@rdfx/literal": "0.0.2",
11
+ "@rdfx/resource": "0.0.2",
10
12
  "@sindresorhus/base62": "~0.1.0",
11
13
  "@tpluscode/rdf-ns-builders": "~4.3.0",
12
14
  "@types/rdfjs__data-model": "~2.0.9",
@@ -19,7 +21,6 @@
19
21
  "pino": "~9.1.0",
20
22
  "plur": "~5.1.0",
21
23
  "purify-ts": "~2.1.4",
22
- "rdfjs-resource": "3.0.7",
23
24
  "reserved-identifiers": "~1.0.0",
24
25
  "toposort": "2.0.2",
25
26
  "ts-invariant": "~0.10.3",
@@ -27,14 +28,8 @@
27
28
  "typescript-memoize": "~1.1.1"
28
29
  },
29
30
  "devDependencies": {
30
- "@tsconfig/node18": "~18.2.4",
31
- "@tsconfig/strictest": "~2.0.8",
32
31
  "@types/n3": "~1.26.0",
33
- "@types/node": "~18",
34
- "depcheck": "~1.4.7",
35
- "n3": "~1.26.0",
36
- "rimraf": "~6.0.1",
37
- "typescript": "5.9.3"
32
+ "n3": "~1.26.0"
38
33
  },
39
34
  "files": [
40
35
  "dist/*.d.ts",
@@ -78,5 +73,5 @@
78
73
  },
79
74
  "type": "module",
80
75
  "types": "./dist/index.d.ts",
81
- "version": "4.0.15"
76
+ "version": "4.0.16"
82
77
  }