@inglorious/web 6.6.0 → 6.6.2

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/types/mount.d.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/web",
3
- "version": "6.6.0",
3
+ "version": "6.6.2",
4
4
  "description": "A new web framework that leverages the power of the Inglorious Store combined with the performance and simplicity of lit-html.",
5
5
  "author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "contributors": [
@@ -109,10 +109,10 @@
109
109
  "lit-html": "^3.3.3"
110
110
  },
111
111
  "peerDependencies": {
112
- "@inglorious/store": "11.0.3"
112
+ "@inglorious/store": "11.0.5"
113
113
  },
114
114
  "devDependencies": {
115
- "@inglorious/eslint-config": "1.1.2",
115
+ "@inglorious/eslint-config": "1.1.4",
116
116
  "prettier": "^3.9.6",
117
117
  "vitest": "^5.0.0"
118
118
  },
package/types/mount.d.ts CHANGED
@@ -13,13 +13,14 @@ export type Api<
13
13
  > = StoreApi<TEntity, TState> & {
14
14
  /**
15
15
  * Renders an entity or a type component by its ID.
16
- * @param id The ID of the entity or type to render.
16
+ * @param id The ID of the entity or type to render. None, such as the route
17
+ * of an unmatched path, renders nothing.
17
18
  * @param typeName Optional type name to lazy-register.
18
19
  * @param type Optional type definition to register when typeName is provided.
19
20
  * @returns The rendered template or an empty string if not found.
20
21
  */
21
22
  render: {
22
- (id: string): TemplateResult | string
23
+ (id: string | undefined): TemplateResult | string
23
24
  (
24
25
  id: string,
25
26
  typeName: string,