ts-dom-utils 2.2.0 → 2.2.1

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,5 +1,13 @@
1
1
  # ts-dom-utils
2
2
 
3
+ ## 2.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6cf9275: Fix typo in `aria-expanded` attribute in `createElement` example
8
+ - fc35c90: Update publish workflow to use OpenID Connect
9
+ - ad96903: Update dependencies
10
+
3
11
  ## 2.2.0
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -51,11 +51,11 @@ const button = createElement('button', {
51
51
  dataset: {
52
52
  action: 'open-menu',
53
53
  },
54
- 'aria-expandended': 'false',
54
+ 'aria-expanded': 'false',
55
55
  });
56
56
 
57
57
  document.body.appendChild(button);
58
- // <button id="my-button" class="btn btn-primary" data-action="open-menu" aria-expandended="false">Click me</button>
58
+ // <button id="my-button" class="btn btn-primary" data-action="open-menu" aria-expanded="false">Click me</button>
59
59
  ```
60
60
 
61
61
  | Param | Default | Description |
@@ -17,11 +17,11 @@
17
17
  * dataset: {
18
18
  * action: 'open-menu',
19
19
  * },
20
- * 'aria-expandended': 'false',
20
+ * 'aria-expanded': 'false',
21
21
  * });
22
22
 
23
23
  * document.body.appendChild(button);
24
- * // <button id="my-button" class="btn btn-primary" data-action="open-menu" aria-expandended="false">Click me</button>
24
+ * // <button id="my-button" class="btn btn-primary" data-action="open-menu" aria-expanded="false">Click me</button>
25
25
  */
26
26
  declare function createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: CreateElementOptions<K>, target?: Document): HTMLElementTagNameMap[K];
27
27
  type SpecialAttributes = {
@@ -17,11 +17,11 @@
17
17
  * dataset: {
18
18
  * action: 'open-menu',
19
19
  * },
20
- * 'aria-expandended': 'false',
20
+ * 'aria-expanded': 'false',
21
21
  * });
22
22
 
23
23
  * document.body.appendChild(button);
24
- * // <button id="my-button" class="btn btn-primary" data-action="open-menu" aria-expandended="false">Click me</button>
24
+ * // <button id="my-button" class="btn btn-primary" data-action="open-menu" aria-expanded="false">Click me</button>
25
25
  */
26
26
  declare function createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: CreateElementOptions<K>, target?: Document): HTMLElementTagNameMap[K];
27
27
  type SpecialAttributes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-dom-utils",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "A simple utility library for DOM manipulation. Provides TypeScript typings for enhanced development experience in TS environments.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -30,9 +30,9 @@
30
30
  "homepage": "https://github.com/rafaucau/ts-dom-utils#readme",
31
31
  "funding": "https://github.com/rafaucau/ts-dom-utils?sponsor=1",
32
32
  "devDependencies": {
33
- "@changesets/cli": "^2.26.2",
34
- "prettier": "^3.1.0",
35
- "tsup": "^8.0.1",
36
- "typescript": "^5.3.2"
33
+ "@changesets/cli": "^2.29.8",
34
+ "prettier": "^3.8.1",
35
+ "tsup": "^8.5.1",
36
+ "typescript": "^5.9.3"
37
37
  }
38
38
  }