componentsjs 6.0.0 → 6.1.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.
@@ -260,6 +260,11 @@ class GenericsContext {
260
260
  */
261
261
  bindComponentGenericTypes(component, genericTypeInstances, errorContext, typeTypeValidator) {
262
262
  const genericTypeParameters = component.properties.genericTypeParameters;
263
+ // Populate generic type instances with default generic values if applicable
264
+ while (genericTypeInstances.length < genericTypeParameters.length &&
265
+ genericTypeParameters[genericTypeInstances.length].property.default) {
266
+ genericTypeInstances.push(genericTypeParameters[genericTypeInstances.length].property.default);
267
+ }
263
268
  // Don't do anything if no generic type instances are passed.
264
269
  if (genericTypeInstances.length === 0) {
265
270
  return {
@@ -16,12 +16,6 @@ class PrefetchedDocumentLoader extends jsonld_context_parser_1.FetchDocumentLoad
16
16
  this.remoteContextLookups = options.remoteContextLookups;
17
17
  }
18
18
  async load(url) {
19
- // Warn on deprecated context usage
20
- // eslint-disable-next-line max-len
21
- const match = PrefetchedDocumentLoader.CONTEXT_PATTERN.exec(url);
22
- if (this.logger && match && Number.parseInt(match[1], 10) < PrefetchedDocumentLoader.CJS_MAJOR_VERSION) {
23
- this.logger.warn(`Detected deprecated context URL '${url}'${this.path ? ` in ${this.path}` : ''}. Prefer using version '^${PrefetchedDocumentLoader.CJS_MAJOR_VERSION}.0.0' instead.`);
24
- }
25
19
  // Load prefetched contexts
26
20
  if (url in this.contexts) {
27
21
  return this.contexts[url];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "componentsjs",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "A semantic dependency injection framework",
5
5
  "lsd:contexts": {
6
6
  "https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld": "components/context.jsonld"