jj 2.6.0 → 2.7.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 (3) hide show
  1. package/README.md +0 -1
  2. package/SKILL.md +2 -6
  3. package/package.json +4 -13
package/README.md CHANGED
@@ -17,7 +17,6 @@ JJHE.create('div')
17
17
  .addClass('card')
18
18
  .setText('Hello World!')
19
19
  .on('click', () => console.log('Hi'))
20
- .appendToBody()
21
20
  ```
22
21
 
23
22
  ## 🚀 Why JJ?
package/SKILL.md CHANGED
@@ -1,10 +1,6 @@
1
1
  ---
2
- name: jj-dom-helpers
3
- description: >
4
- Minimal, imperative TypeScript DOM library for AI-assisted development. Use when
5
- working with DOM manipulation, custom elements, or building lightweight web
6
- components without frameworks. Triggers on tasks involving direct DOM manipulation,
7
- Shadow DOM, document fragments, template handling, or converting from React/Vue/jQuery.
2
+ name: jj
3
+ description: Minimal, imperative TypeScript DOM library for AI-assisted development. Use when working with DOM manipulation, custom elements, or building lightweight web components without frameworks. Triggers on tasks involving direct DOM manipulation, Shadow DOM, document fragments, template handling, or converting from React/Vue/jQuery.
8
4
  license: MIT
9
5
  metadata:
10
6
  author: alexewerlof
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jj",
3
- "version": "2.6.0",
3
+ "version": "2.7.2",
4
4
  "description": "A minimal DOM manipulation library with web components",
5
5
  "keywords": [
6
6
  "javascript",
@@ -18,18 +18,8 @@
18
18
  "main": "./lib/index.js",
19
19
  "unpkg": "./lib/bundle.js",
20
20
  "exports": {
21
- ".": {
22
- "types": "./lib/index.d.ts",
23
- "import": "./lib/index.js"
24
- },
25
- "./lib/bundle.js": {
26
- "types": "./lib/index.d.ts",
27
- "import": "./lib/bundle.js"
28
- },
29
- "./lib/bundle.min.js": {
30
- "types": "./lib/index.d.ts",
31
- "import": "./lib/bundle.min.js"
32
- }
21
+ "import": "./lib/bundle.js",
22
+ "require": "./lib/bundle.cjs"
33
23
  },
34
24
  "directories": {
35
25
  "lib": "lib",
@@ -49,6 +39,7 @@
49
39
  "test": "npm run typecheck && node --import tsx --test",
50
40
  "test:watch": "npm run typecheck && node --import tsx --test --watch",
51
41
  "test:coverage": "npm run typecheck && node --import tsx --test --experimental-test-coverage",
42
+ "get-bundle-size": "gzip -9 -c lib/bundle.min.js | wc -c | numfmt --to=iec-i --suffix=B",
52
43
  "preversion": "npm run fmt && npm t",
53
44
  "prepublishOnly": "npm run build",
54
45
  "postversion": "git push && git push --tags"