componentsjs 5.0.0-beta.7 → 5.0.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
<a name="v5.0.0"></a>
|
|
5
|
+
## [v5.0.0](https://github.com/LinkedSoftwareDependencies/Components.js/compare/v5.0.0-beta.7...v5.0.0) - 2022-03-01
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
* [Bump context URL to 5.0.0](https://github.com/LinkedSoftwareDependencies/Components.js/commit/495654fa70f559aaaa86a0960686fd1ca23f9546)
|
|
9
|
+
* [Add incorrect version number as possible cause for remote lookup failure (#67)](https://github.com/LinkedSoftwareDependencies/Components.js/commit/adf1d7e092b95a2fc47c7d2da3dfe191fdb741aa)
|
|
10
|
+
|
|
4
11
|
<a name="v5.0.0-beta.7"></a>
|
|
5
12
|
## [v5.0.0-beta.7](https://github.com/LinkedSoftwareDependencies/Components.js/compare/v5.0.0-beta.6...v5.0.0-beta.7) - 2022-02-21
|
|
6
13
|
|
|
@@ -17,8 +17,9 @@ class PrefetchedDocumentLoader extends jsonld_context_parser_1.FetchDocumentLoad
|
|
|
17
17
|
async load(url) {
|
|
18
18
|
// Warn on deprecated context usage
|
|
19
19
|
if (this.logger &&
|
|
20
|
-
url === 'https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^
|
|
21
|
-
|
|
20
|
+
(url === 'https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^4.0.0/components/context.jsonld' ||
|
|
21
|
+
url === 'https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^3.0.0/components/context.jsonld')) {
|
|
22
|
+
this.logger.warn(`Detected deprecated context URL '${url}'${this.path ? ` in ${this.path}` : ''}. Prefer using version '^5.0.0' instead.`);
|
|
22
23
|
}
|
|
23
24
|
// Load prefetched contexts
|
|
24
25
|
if (url in this.contexts) {
|
|
@@ -26,19 +27,20 @@ class PrefetchedDocumentLoader extends jsonld_context_parser_1.FetchDocumentLoad
|
|
|
26
27
|
}
|
|
27
28
|
// Warn before doing a remote context lookup
|
|
28
29
|
if (this.logger) {
|
|
29
|
-
this.logger.warn(`Detected remote context lookup for '${url}'${this.path ? ` in ${this.path}` : ''}. This may indicate a missing or invalid dependency, or an invalid context URL.`);
|
|
30
|
+
this.logger.warn(`Detected remote context lookup for '${url}'${this.path ? ` in ${this.path}` : ''}. This may indicate a missing or invalid dependency, incorrect version number, or an invalid context URL.`);
|
|
30
31
|
}
|
|
31
32
|
return super.load(url);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
exports.PrefetchedDocumentLoader = PrefetchedDocumentLoader;
|
|
35
|
-
PrefetchedDocumentLoader.CONTEXT_URL = 'https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^
|
|
36
|
+
PrefetchedDocumentLoader.CONTEXT_URL = 'https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld';
|
|
36
37
|
// eslint-disable-next-line no-sync
|
|
37
38
|
PrefetchedDocumentLoader.DEFAULT_CONTEXT = JSON.parse(fs
|
|
38
39
|
.readFileSync(`${__dirname}/../../components/context.jsonld`, 'utf8'));
|
|
39
40
|
PrefetchedDocumentLoader.DEFAULT_CONTEXTS = {
|
|
40
41
|
[PrefetchedDocumentLoader.CONTEXT_URL]: PrefetchedDocumentLoader.DEFAULT_CONTEXT,
|
|
41
|
-
// TODO: temporarily also set old context
|
|
42
|
+
// TODO: temporarily also set old context versions for backwards-compatible.
|
|
43
|
+
'https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^4.0.0/components/context.jsonld': PrefetchedDocumentLoader.DEFAULT_CONTEXT,
|
|
42
44
|
'https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^3.0.0/components/context.jsonld': PrefetchedDocumentLoader.DEFAULT_CONTEXT,
|
|
43
45
|
};
|
|
44
46
|
//# sourceMappingURL=PrefetchedDocumentLoader.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "componentsjs",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A semantic dependency injection framework",
|
|
5
5
|
"lsd:contexts": {
|
|
6
6
|
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^3.0.0/components/context.jsonld": "components/context.jsonld"
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@rubensworks/eslint-config": "^1.0.1",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
53
|
-
"@typescript-eslint/parser": "^
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
53
|
+
"@typescript-eslint/parser": "^5.0.0",
|
|
54
54
|
"@types/jest": "^27.0.0",
|
|
55
55
|
"eslint": "^7.12.1",
|
|
56
56
|
"eslint-config-es": "3.25.3",
|
|
57
57
|
"eslint-import-resolver-typescript": "^2.3.0",
|
|
58
58
|
"eslint-plugin-import": "^2.22.1",
|
|
59
|
-
"eslint-plugin-jest": "^
|
|
59
|
+
"eslint-plugin-jest": "^26.0.0",
|
|
60
60
|
"eslint-plugin-tsdoc": "^0.2.7",
|
|
61
|
-
"eslint-plugin-unused-imports": "^
|
|
61
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
62
62
|
"jest": "^27.0.1",
|
|
63
63
|
"jest-rdf": "^1.7.0",
|
|
64
64
|
"jshint": "^2.1.10",
|