defuss-morph 0.1.0

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.
@@ -0,0 +1,22 @@
1
+ {
2
+ "package": "defuss-morph",
3
+ "version": "0.1.0",
4
+ "files": {
5
+ "dist/index.mjs": {
6
+ "bytes": 41197,
7
+ "gzip": 9762
8
+ },
9
+ "dist/index.cjs": {
10
+ "bytes": 42228,
11
+ "gzip": 9912
12
+ },
13
+ "dist/all.js": {
14
+ "bytes": 42572,
15
+ "gzip": 10076
16
+ },
17
+ "dist/all.min.js": {
18
+ "bytes": 19394,
19
+ "gzip": 6948
20
+ }
21
+ }
22
+ }
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "defuss-morph",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "license": "MIT",
9
+ "description": "The defuss DOM morphing algorithm is a standalone package: morph an HTML string or JSX object into an existing DOM tree using native APIs and smart DOM diffing. Key/id-aware node matching, move-not-replace, in-place attribute patching, form-state preservation and delegated event cleanup. Allows for isomorphic rendering and patching of server-rendered HTML in the browser. Does not need any framework or virtual DOM. Can be used with any framework or library, or without any. No compile/transpile step required. Extremely lightweight. Just 6 KiB minified and gzipped. Written in TypeScript.",
10
+ "keywords": [
11
+ "dom",
12
+ "morph",
13
+ "morphdom",
14
+ "idiomorph",
15
+ "diff",
16
+ "patch",
17
+ "html",
18
+ "isomorphic",
19
+ "defuss",
20
+ "typescript",
21
+ "ai-prototyping",
22
+ "for-ai-agents"
23
+ ],
24
+ "repository": {
25
+ "url": "git+https://github.com/kyr0/defuss.git",
26
+ "type": "git"
27
+ },
28
+ "scripts": {
29
+ "clean": "rm -rf ./coverage ./dist ./node_modules/.vite",
30
+ "prebuild": "bun run clean",
31
+ "build": "pkgroll",
32
+ "bundle": "bun scripts/bundle.ts",
33
+ "minify": "bun scripts/minify.ts",
34
+ "stats": "bun scripts/stats.ts",
35
+ "verify": "bun scripts/verify.ts",
36
+ "lint": "oxlint src scripts",
37
+ "typecheck": "tsc --noEmit --emitDeclarationOnly false -p tsconfig.json",
38
+ "purge-cdn": "bun scripts/purge-cdn.ts",
39
+ "test": "vitest run --coverage",
40
+ "test:watch": "vitest --coverage",
41
+ "pretest:browser": "bunx playwright install chromium",
42
+ "test:browser": "vitest run --project browser",
43
+ "e2e": "bun run test:browser",
44
+ "prepublishOnly": "bun run lint && bun run typecheck && bun run test && bun run clean && bun run build && bun run bundle && bun run minify && bun run stats && bun run verify"
45
+ },
46
+ "author": "Aron Homberg <info@aron-homberg.de>",
47
+ "sideEffects": [
48
+ "./src/global.ts",
49
+ "./src/all.ts",
50
+ "./dist/all.js",
51
+ "./dist/all.min.js"
52
+ ],
53
+ "exports": {
54
+ ".": {
55
+ "require": {
56
+ "types": "./dist/index.d.ts",
57
+ "default": "./dist/index.cjs"
58
+ },
59
+ "import": {
60
+ "types": "./dist/index.d.ts",
61
+ "default": "./dist/index.mjs"
62
+ }
63
+ }
64
+ },
65
+ "main": "./dist/index.cjs",
66
+ "module": "./dist/index.mjs",
67
+ "types": "./dist/index.d.ts",
68
+ "files": [
69
+ "dist",
70
+ "README.md",
71
+ "LICENSE"
72
+ ],
73
+ "engines": {
74
+ "node": "^20.0.0 || >=22.0.0"
75
+ },
76
+ "devDependencies": {
77
+ "@types/node": "^25.4.0",
78
+ "@vitest/browser": "^5.0.0",
79
+ "@vitest/browser-playwright": "^5.0.0",
80
+ "@vitest/coverage-v8": "^5.0.0",
81
+ "happy-dom": "^20.5.0",
82
+ "oxc-minify": "^0.149.0",
83
+ "oxlint": "^1.81.0",
84
+ "pkgroll": "^2.27.0",
85
+ "playwright": "^1.58.2",
86
+ "typescript": "^5.9.3",
87
+ "vitest": "^5.0.0"
88
+ }
89
+ }