@esportsplus/template 0.12.10 → 0.12.12

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.

Potentially problematic release.


This version of @esportsplus/template might be problematic. Click here for more details.

package/build/types.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ReactiveArray } from '@esportsplus/reactivity';
2
- import { Primitive } from '@esportsplus/utilities';
3
2
  import { RENDERABLE, RENDERABLE_REACTIVE, RENDERABLE_TEMPLATE } from './constants.js';
4
3
  import { firstChild } from './utilities.js';
5
4
  import attributes from './attributes.js';
@@ -18,6 +17,7 @@ type Effect<T> = () => EffectResponse<T>;
18
17
  type EffectResponse<T> = T extends [] ? EffectResponse<T[number]>[] : Primitive | Renderable<T>;
19
18
  type Element = HTMLElement & Attributes & Record<PropertyKey, unknown>;
20
19
  type Elements = Element[];
20
+ type Primitive = bigint | boolean | null | number | string | undefined;
21
21
  type Renderable<T = unknown> = RenderableReactive<T> | RenderableTemplate<T>;
22
22
  type RenderableReactive<T = unknown> = Readonly<{
23
23
  [RENDERABLE]: typeof RENDERABLE_REACTIVE;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "dependencies": {
4
4
  "@esportsplus/reactivity": "^0.4.6",
5
5
  "@esportsplus/tasks": "^0.1.9",
6
- "@esportsplus/utilities": "^0.17.3"
6
+ "@esportsplus/utilities": "^0.18.2"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@esportsplus/typescript": "^0.9.1"
@@ -13,7 +13,7 @@
13
13
  "private": false,
14
14
  "type": "module",
15
15
  "types": "./build/index.d.ts",
16
- "version": "0.12.10",
16
+ "version": "0.12.12",
17
17
  "scripts": {
18
18
  "build": "tsc && tsc-alias",
19
19
  "-": "-"
package/src/types.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ReactiveArray } from '@esportsplus/reactivity';
2
- import { Primitive } from '@esportsplus/utilities';
3
2
  import { RENDERABLE, RENDERABLE_REACTIVE, RENDERABLE_TEMPLATE } from './constants';
4
3
  import { firstChild } from './utilities';
5
4
  import attributes from './attributes';
@@ -25,6 +24,10 @@ type Element = HTMLElement & Attributes & Record<PropertyKey, unknown>;
25
24
 
26
25
  type Elements = Element[];
27
26
 
27
+ // Copied from '@esportsplus/utilities'
28
+ // - Importing from ^ causes 'cannot be named without a reference to...' error
29
+ type Primitive = bigint | boolean | null | number | string | undefined;
30
+
28
31
  type Renderable<T = unknown> = RenderableReactive<T> | RenderableTemplate<T>;
29
32
 
30
33
  type RenderableReactive<T = unknown> = Readonly<{