rdflib 2.2.36 → 2.2.37

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,12 +1,22 @@
1
1
  /** A set of features that may be supported by a Data Factory */
2
2
 
3
3
  export let Feature = /*#__PURE__*/function (Feature) {
4
+ /** Whether the factory supports termType:Collection terms */
4
5
  Feature["collections"] = "COLLECTIONS";
6
+ /** Whether the factory supports termType:DefaultGraph terms */
5
7
  Feature["defaultGraphType"] = "DEFAULT_GRAPH_TYPE";
8
+ /** Whether the factory supports equals on produced instances */
6
9
  Feature["equalsMethod"] = "EQUALS_METHOD";
10
+ /** Whether the factory can create a unique idempotent identifier for the given term. */
7
11
  Feature["id"] = "ID";
12
+ /**
13
+ * Whether the factory will return the same instance for subsequent calls.
14
+ * This implies `===`, which means methods like `indexOf` can be used.
15
+ */
8
16
  Feature["identity"] = "IDENTITY";
17
+ /** Whether the factory supports mapping ids back to instances (should adhere to the identity setting) */
9
18
  Feature["reversibleId"] = "REVERSIBLE_ID";
19
+ /** Whether the factory supports termType:Variable terms */
10
20
  Feature["variableType"] = "VARIABLE_TYPE";
11
21
  return Feature;
12
22
  }({});
package/esm/serialize.js CHANGED
@@ -3,7 +3,7 @@ import { JSONLDContentType, N3ContentType, N3LegacyContentType, NQuadsAltContent
3
3
  /**
4
4
  * Serialize to the appropriate format
5
5
  */
6
- export default function serialize( /** The graph or nodes that should be serialized */
6
+ export default function serialize(/** The graph or nodes that should be serialized */
7
7
  target, /** The store */
8
8
  kb, base,
9
9
  /**
@@ -6,12 +6,22 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Feature = void 0;
7
7
  /** A set of features that may be supported by a Data Factory */
8
8
  let Feature = exports.Feature = /*#__PURE__*/function (Feature) {
9
+ /** Whether the factory supports termType:Collection terms */
9
10
  Feature["collections"] = "COLLECTIONS";
11
+ /** Whether the factory supports termType:DefaultGraph terms */
10
12
  Feature["defaultGraphType"] = "DEFAULT_GRAPH_TYPE";
13
+ /** Whether the factory supports equals on produced instances */
11
14
  Feature["equalsMethod"] = "EQUALS_METHOD";
15
+ /** Whether the factory can create a unique idempotent identifier for the given term. */
12
16
  Feature["id"] = "ID";
17
+ /**
18
+ * Whether the factory will return the same instance for subsequent calls.
19
+ * This implies `===`, which means methods like `indexOf` can be used.
20
+ */
13
21
  Feature["identity"] = "IDENTITY";
22
+ /** Whether the factory supports mapping ids back to instances (should adhere to the identity setting) */
14
23
  Feature["reversibleId"] = "REVERSIBLE_ID";
24
+ /** Whether the factory supports termType:Variable terms */
15
25
  Feature["variableType"] = "VARIABLE_TYPE";
16
26
  return Feature;
17
27
  }({});
package/lib/serialize.js CHANGED
@@ -10,7 +10,7 @@ var _types = require("./types");
10
10
  /**
11
11
  * Serialize to the appropriate format
12
12
  */
13
- function serialize( /** The graph or nodes that should be serialized */
13
+ function serialize(/** The graph or nodes that should be serialized */
14
14
  target, /** The store */
15
15
  kb, base,
16
16
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rdflib",
3
3
  "description": "an RDF library for node.js. Suitable for client and server side.",
4
- "version": "2.2.36",
4
+ "version": "2.2.37",
5
5
  "private": false,
6
6
  "browserslist": [
7
7
  "> 0.5%"
@@ -44,47 +44,47 @@
44
44
  "homepage": "http://github.com/linkeddata/rdflib.js",
45
45
  "bugs": "http://github.com/linkeddata/rdflib.js/issues",
46
46
  "dependencies": {
47
- "@frogcat/ttl2jsonld": "^0.0.9",
47
+ "@babel/runtime": "^7.26.9",
48
+ "@frogcat/ttl2jsonld": "^0.0.10",
48
49
  "@xmldom/xmldom": "^0.8.10",
49
- "cross-fetch": "^3.1.8",
50
- "jsonld": "^8.3.2",
51
- "n3": "^1.17.3",
52
- "solid-namespace": "^0.5.3"
50
+ "cross-fetch": "^3.2.0",
51
+ "jsonld": "^8.3.3",
52
+ "n3": "^1.23.1",
53
+ "solid-namespace": "^0.5.4"
53
54
  },
54
55
  "devDependencies": {
55
- "@babel/cli": "^7.24.1",
56
- "@babel/core": "^7.24.4",
56
+ "@babel/cli": "^7.26.4",
57
+ "@babel/core": "^7.26.9",
57
58
  "@babel/plugin-proposal-class-properties": "^7.18.6",
58
- "@babel/plugin-transform-runtime": "^7.24.3",
59
- "@babel/preset-env": "^7.24.4",
60
- "@babel/preset-typescript": "^7.24.1",
61
- "@babel/register": "^7.23.7",
62
- "@babel/runtime": "^7.24.4",
63
- "@types/chai": "^4.3.14",
64
- "@types/dirty-chai": "^2.0.4",
59
+ "@babel/plugin-transform-runtime": "^7.26.9",
60
+ "@babel/preset-env": "^7.26.9",
61
+ "@babel/preset-typescript": "^7.26.0",
62
+ "@babel/register": "^7.25.9",
63
+ "@types/chai": "^4.3.20",
64
+ "@types/dirty-chai": "^2.0.5",
65
65
  "@types/express": "^4.17.21",
66
- "@types/jsonld": "^1.5.13",
67
- "@types/mocha": "^10.0.6",
66
+ "@types/jsonld": "^1.5.15",
67
+ "@types/mocha": "^10.0.10",
68
68
  "@types/sinon-chai": "^3.2.12",
69
- "babel-loader": "^9.1.3",
70
- "chai": "^4.4.1",
69
+ "babel-loader": "^9.2.1",
70
+ "chai": "^4.5.0",
71
71
  "diff": "^5.2.0",
72
72
  "dirty-chai": "^2.0.1",
73
- "eslint": "^8.57.0",
73
+ "eslint": "^9.20.1",
74
74
  "fs-grep": "0.0.5",
75
75
  "locate-path": "^7.2.0",
76
- "mocha": "^10.4.0",
77
- "nock": "^13.5.4",
76
+ "mocha": "^10.8.2",
77
+ "nock": "^13.5.6",
78
78
  "node-fetch": "^3.3.2",
79
79
  "node-polyfill-webpack-plugin": "^2.0.1",
80
80
  "rdf-js": "^4.0.2",
81
- "sinon": "^15.0.3",
81
+ "sinon": "^15.2.0",
82
82
  "sinon-chai": "^3.7.0",
83
83
  "source-map-loader": "^4.0.2",
84
84
  "ts-node": "^10.9.2",
85
85
  "typedoc": "^0.25.13",
86
86
  "typescript": "^5.0.4",
87
- "webpack": "^5.91.0",
87
+ "webpack": "^5.98.0",
88
88
  "webpack-cli": "^5.1.4",
89
89
  "webpack-dev-server": "^4.15.2"
90
90
  },