@zumer/snapdom 2.24.15 → 3.0.0-beta.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zumer/snapdom",
3
- "version": "2.24.15",
4
- "description": "Fast, modern alternative to html2canvas — captures HTML elements to images (PNG, JPG, SVG, WebP) with exceptional speed and accuracy.",
3
+ "version": "3.0.0-beta.0",
4
+ "description": "Browser capture engine for web interfaces. Reusable images and canvas, with plugins for HTML, context, PDF and recordings.",
5
5
  "type": "module",
6
6
  "main": "./dist/snapdom.js",
7
7
  "module": "./dist/snapdom.mjs",
@@ -14,15 +14,14 @@
14
14
  ".": {
15
15
  "types": "./types/snapdom.d.ts",
16
16
  "import": "./dist/snapdom.mjs",
17
- "require": "./dist/snapdom.js",
18
17
  "default": "./dist/snapdom.mjs"
19
18
  },
20
- "./preCache": {
21
- "import": "./dist/preCache.mjs"
22
- },
23
19
  "./plugins": {
24
- "import": "./dist/plugins.mjs"
25
- }
20
+ "types": "./types/snapdom.d.ts",
21
+ "import": "./dist/snapdom.mjs",
22
+ "default": "./dist/snapdom.mjs"
23
+ },
24
+ "./package.json": "./package.json"
26
25
  },
27
26
  "files": [
28
27
  "dist/",
@@ -35,19 +34,25 @@
35
34
  "lint:fix": "eslint src __tests__ --ext .js --fix",
36
35
  "test:bundle": "npm run compile && node scripts/verify-legacy-bundle.mjs",
37
36
  "test:types": "tsc --noEmit",
38
- "test": "npm run lint:fix && npm run test:types && npm run test:bundle && npx vitest run --browser.headless --reporter=verbose",
37
+ "test": "npm run lint && npm run test:types && npm run test:release-checks && npm run test:bundle && npx vitest run --browser.headless --reporter=verbose",
39
38
  "test:visual": "npx vitest run __tests__/visual.demos. --browser.headless --reporter=verbose",
40
39
  "test:firefox": "BROWSER=firefox npx vitest run --browser.headless --reporter=verbose",
41
40
  "test:webkit": "BROWSER=webkit npx vitest run --browser.headless --reporter=verbose",
42
- "test:full": "npm run lint:fix && npm run test:types && npm run test:bundle && BROWSER=all npx vitest run --browser.headless --reporter=verbose",
41
+ "test:full": "npm run lint && npm run test:types && npm run test:release-checks && npm run test:bundle && BROWSER=all npx vitest run --browser.headless --reporter=dot",
42
+ "test:release-checks": "node --test scripts/release-checks.node.mjs",
43
43
  "report:cross": "node scripts/cross-report.mjs",
44
44
  "test:coverage": "npx vitest run --browser.headless --coverage",
45
45
  "test:benchmark": "npx vitest bench --browser.headless --watch=false",
46
+ "bench:realpage": "node scripts/realpage-bench.mjs",
47
+ "test:pack": "node scripts/check-pack.mjs",
46
48
  "site": "npm run compile && node scripts/serve-site.mjs",
47
49
  "bump:dry": "npx @zumerbox/bump -d",
48
50
  "bump": "npx @zumerbox/bump && npx @zumerbox/changelog",
49
- "build": "npm run compile && npm pack",
50
- "release:push": "git add CHANGELOG.md && git commit -m \"Bumped version\" && git push --follow-tags"
51
+ "prepack": "npm run compile",
52
+ "build": "npm pack",
53
+ "release": "REQUIRE_VISUAL=1 npm run test:full && npm run test:pack && npm run build && echo \"\\n→ Review CHANGELOG.md, then: npm run release:push\"",
54
+ "release:push": "git add CHANGELOG.md && git commit -m \"Bumped version\" && git push --follow-tags",
55
+ "publish:beta": "npm publish --tag beta"
51
56
  },
52
57
  "repository": {
53
58
  "type": "git",
@@ -98,8 +103,9 @@
98
103
  "esbuild": "^0.28.1",
99
104
  "eslint": "^9.36.0",
100
105
  "globals": "^16.4.0",
101
- "playwright": "^1.52.0",
102
- "typescript": "^7.0.2"
106
+ "playwright": "1.55.1",
107
+ "typescript": "^7.0.2",
108
+ "vitest": "^3.2.7"
103
109
  },
104
110
  "overrides": {
105
111
  "vite": "^6"