@htmlplus/element 2.9.5 → 2.9.6

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.
@@ -3,4 +3,4 @@ import { HTMLPlusElement } from '../../types/index.js';
3
3
  * Indicates whether the [Direction](https://mdn.io/css-direction)
4
4
  * of the element is `Right-To-Left` or `Left-To-Right`.
5
5
  */
6
- export declare const direction: (target: HTMLElement | HTMLPlusElement) => 'ltr' | 'rtl';
6
+ export declare const direction: (target: HTMLElement | HTMLPlusElement) => "ltr" | "rtl";
@@ -2,7 +2,7 @@ import { HTMLPlusElement } from '../../types/index.js';
2
2
  /**
3
3
  * TODO
4
4
  */
5
- export declare const dispatch: <T = any>(target: HTMLElement | HTMLPlusElement, type: string, eventInitDict?: CustomEventInit<T> | undefined) => CustomEvent<T>;
5
+ export declare const dispatch: <T = any>(target: HTMLElement | HTMLPlusElement, type: string, eventInitDict?: CustomEventInit<T>) => CustomEvent<T>;
6
6
  /**
7
7
  * TODO
8
8
  */
@@ -6,4 +6,4 @@ import { HTMLPlusElement } from '../../types/index.js';
6
6
  * @param previous The previous value of Property/State.
7
7
  * @param callback Invoked when the rendering phase is completed.
8
8
  */
9
- export declare const request: (target: HTMLPlusElement, name?: string, previous?: any, callback?: ((skipped: boolean) => void) | undefined) => void;
9
+ export declare const request: (target: HTMLPlusElement, name?: string, previous?: any, callback?: (skipped: boolean) => void) => void;
@@ -490,8 +490,8 @@ const cache$1 = new WeakMapSet();
490
490
  // a RegExp that helps checking nodes that cannot contain comments
491
491
  const textOnly = /^(?:textarea|script|style|title|plaintext|xmp)$/;
492
492
  const createCache = () => ({
493
- stack: [],
494
- entry: null,
493
+ stack: [], // each template gets a stack for each interpolation "hole"
494
+ entry: null, // each entry contains details, such as:
495
495
  // * the template that is representing
496
496
  // * the type of node it represents (html or svg)
497
497
  // * the content fragment with all nodes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlplus/element",
3
- "version": "2.9.5",
3
+ "version": "2.9.6",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "author": "Masood Abdolian <m.abdolian@gmail.com>",
@@ -32,31 +32,31 @@
32
32
  },
33
33
  "homepage": "https://github.com/htmlplus/element#readme",
34
34
  "dependencies": {
35
- "@babel/generator": "^7.24.7",
36
- "@babel/parser": "^7.24.7",
35
+ "@babel/generator": "^7.24.10",
36
+ "@babel/parser": "^7.24.8",
37
37
  "@babel/template": "^7.24.7",
38
- "@babel/traverse": "^7.24.7",
39
- "@babel/types": "^7.24.7",
40
- "@types/node": "^20.14.9",
38
+ "@babel/traverse": "^7.24.8",
39
+ "@babel/types": "^7.24.9",
40
+ "@types/node": "^20.14.10",
41
41
  "change-case": "^5.4.4",
42
42
  "fs-extra": "^11.2.0",
43
- "glob": "^10.4.2",
43
+ "glob": "^11.0.0",
44
44
  "ora": "^8.0.1",
45
- "typescript": "^4.9.5"
45
+ "typescript": "^5.5.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@semantic-release/changelog": "^6.0.3",
49
49
  "@semantic-release/commit-analyzer": "^13.0.0",
50
50
  "@semantic-release/git": "^10.0.1",
51
- "@semantic-release/github": "^10.0.7",
51
+ "@semantic-release/github": "^10.1.0",
52
52
  "@semantic-release/npm": "^12.0.1",
53
53
  "@semantic-release/release-notes-generator": "^14.0.1",
54
54
  "@trivago/prettier-plugin-sort-imports": "^4.3.0",
55
55
  "cpy": "^11.0.1",
56
- "prettier": "^3.3.2",
57
- "rimraf": "^5.0.7",
56
+ "prettier": "^3.3.3",
57
+ "rimraf": "^6.0.1",
58
58
  "semantic-release": "^24.0.0",
59
59
  "tsx": "^4.16.2",
60
- "vite": "^5.3.3"
60
+ "vite": "^5.3.4"
61
61
  }
62
62
  }