svg-path-commander 2.2.0 → 2.2.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.
- package/AGENTS.md +18 -4
- package/CHANGELOG.md +34 -0
- package/README.md +15 -3
- package/dist/index.d.ts +972 -97
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +533 -432
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/util.d.ts +430 -76
- package/dist/util.d.ts.map +1 -0
- package/dist/util.js +530 -430
- package/dist/util.js.map +1 -1
- package/package.json +36 -34
- package/tsdown.config.ts +0 -75
package/package.json
CHANGED
|
@@ -2,18 +2,11 @@
|
|
|
2
2
|
"name": "svg-path-commander",
|
|
3
3
|
"author": "thednp",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.2.
|
|
5
|
+
"version": "2.2.2",
|
|
6
6
|
"description": "🛹 Modern TypeScript tools for SVG",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"type": "module",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": "./dist/index.js",
|
|
15
|
-
"./util": "./dist/util.js",
|
|
16
|
-
"./package.json": "./package.json"
|
|
7
|
+
"homepage": "http://thednp.github.io/svg-path-commander",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/thednp/svg-path-commander/issues"
|
|
17
10
|
},
|
|
18
11
|
"repository": {
|
|
19
12
|
"type": "git",
|
|
@@ -27,6 +20,7 @@
|
|
|
27
20
|
"normalize",
|
|
28
21
|
"optimize",
|
|
29
22
|
"reverse",
|
|
23
|
+
"intersect",
|
|
30
24
|
"convert",
|
|
31
25
|
"absolute",
|
|
32
26
|
"relative",
|
|
@@ -34,32 +28,41 @@
|
|
|
34
28
|
"transform3d",
|
|
35
29
|
"typescript"
|
|
36
30
|
],
|
|
37
|
-
"
|
|
38
|
-
"
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"package.json",
|
|
34
|
+
"README.md",
|
|
35
|
+
"AGENTS.md",
|
|
36
|
+
"CHANGELOG.md",
|
|
37
|
+
"LICENSE"
|
|
38
|
+
],
|
|
39
|
+
"main": "./dist/index.js",
|
|
40
|
+
"browser": "./dist/index.min.js",
|
|
41
|
+
"module": "./dist/index.js",
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"sideEffects": false,
|
|
44
|
+
"type": "module",
|
|
45
|
+
"exports": {
|
|
46
|
+
".": "./dist/index.js",
|
|
47
|
+
"./util": "./dist/util.js",
|
|
48
|
+
"./package.json": "./package.json"
|
|
39
49
|
},
|
|
40
|
-
"homepage": "http://thednp.github.io/svg-path-commander",
|
|
41
50
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^
|
|
43
|
-
"@vitest/browser": "^4.1.
|
|
44
|
-
"@vitest/
|
|
45
|
-
"@vitest/
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
+
"@types/node": "^26.1.2",
|
|
52
|
+
"@vitest/browser": "^4.1.10",
|
|
53
|
+
"@vitest/browser-playwright": "^4.1.10",
|
|
54
|
+
"@vitest/coverage-istanbul": "^4.1.10",
|
|
55
|
+
"@vitest/ui": "^4.1.10",
|
|
56
|
+
"happy-dom": "^20.11.1",
|
|
57
|
+
"playwright": "^1.62.1",
|
|
58
|
+
"tsdown": "0.22.14",
|
|
59
|
+
"typescript": "^7.0.2",
|
|
60
|
+
"vite": "^8.2.0",
|
|
51
61
|
"vite-plugin-strip-comments": "^0.0.10",
|
|
52
|
-
"vitest": "^4.1.
|
|
62
|
+
"vitest": "^4.1.10"
|
|
53
63
|
},
|
|
54
64
|
"dependencies": {
|
|
55
|
-
"@thednp/dommatrix": "^3.0.
|
|
56
|
-
},
|
|
57
|
-
"engines": {
|
|
58
|
-
"node": ">=16",
|
|
59
|
-
"pnpm": ">=8.6.0"
|
|
60
|
-
},
|
|
61
|
-
"inlinedDependencies": {
|
|
62
|
-
"@thednp/dommatrix": "3.0.4"
|
|
65
|
+
"@thednp/dommatrix": "^3.0.6"
|
|
63
66
|
},
|
|
64
67
|
"scripts": {
|
|
65
68
|
"pre-test": "pnpm clean-coverage",
|
|
@@ -72,9 +75,8 @@
|
|
|
72
75
|
"fix:ts": "deno lint --fix src",
|
|
73
76
|
"lint:ts": "deno lint src",
|
|
74
77
|
"check:ts": "tsc --noEmit",
|
|
75
|
-
"
|
|
78
|
+
"up:deno": "deno update --latest && deno run -A scripts/update-deno.js",
|
|
76
79
|
"build": "tsdown && pnpm copy-docs",
|
|
77
|
-
"build-iife": "vite build --config vite.config.ts",
|
|
78
80
|
"copy-docs": "cp dist/index.min.js docs/index.min.js && cp dist/index.min.js.map docs/index.min.js.map"
|
|
79
81
|
}
|
|
80
82
|
}
|
package/tsdown.config.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { defineConfig, type UserConfig } from "tsdown";
|
|
2
|
-
import stripComments from "vite-plugin-strip-comments";
|
|
3
|
-
const pkg = await import("./package.json", { with: { type: "json" } }).then(
|
|
4
|
-
(m) => m.default,
|
|
5
|
-
);
|
|
6
|
-
|
|
7
|
-
const year = new Date().getFullYear();
|
|
8
|
-
const banner = `/*!
|
|
9
|
-
* SVGPathCommander v${pkg.version} (${pkg.homepage})
|
|
10
|
-
* Copyright ${year} © ${pkg.author}
|
|
11
|
-
* Licensed under MIT (https://github.com/thednp/svg-path-commander/blob/master/LICENSE)
|
|
12
|
-
*/`;
|
|
13
|
-
const miniBanner = `/*! SVGPathCommander $package v${pkg.version} | ${pkg.author} © ${year} | ${pkg.license}-License */`;
|
|
14
|
-
|
|
15
|
-
const config: UserConfig = {
|
|
16
|
-
exports: true,
|
|
17
|
-
dts: true,
|
|
18
|
-
clean: true,
|
|
19
|
-
sourcemap: true,
|
|
20
|
-
// skipNodeModulesBundle: true,
|
|
21
|
-
// outDir: "dist"
|
|
22
|
-
// plugins: [stripComments({ type: "keep-jsdoc" })],
|
|
23
|
-
globalName: "SVGPathCommander",
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default defineConfig([
|
|
27
|
-
{ // UMD
|
|
28
|
-
...config,
|
|
29
|
-
entry: "src/index.ts",
|
|
30
|
-
format: "umd",
|
|
31
|
-
minify: true,
|
|
32
|
-
target: "esnext",
|
|
33
|
-
platform: "browser",
|
|
34
|
-
banner: miniBanner.replace("$package", "UMD"),
|
|
35
|
-
plugins: [stripComments({ type: "none" })],
|
|
36
|
-
deps: {
|
|
37
|
-
alwaysBundle: ["@thednp/dommatrix"],
|
|
38
|
-
},
|
|
39
|
-
outputOptions: {
|
|
40
|
-
file: "dist/index.min.js",
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
{ // ESM
|
|
44
|
-
...config,
|
|
45
|
-
entry: "src/index.ts",
|
|
46
|
-
target: "esnext",
|
|
47
|
-
platform: "neutral",
|
|
48
|
-
treeshake: true,
|
|
49
|
-
format: ["esm"],
|
|
50
|
-
plugins: [stripComments({ type: "keep-jsdoc" })],
|
|
51
|
-
banner: banner.replace("$package", "ESM"),
|
|
52
|
-
deps: {
|
|
53
|
-
skipNodeModulesBundle: true,
|
|
54
|
-
neverBundle: ["@thednp/dommatrix"],
|
|
55
|
-
},
|
|
56
|
-
outputOptions: {
|
|
57
|
-
dir: "dist",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{ // UTIL
|
|
61
|
-
...config,
|
|
62
|
-
entry: {
|
|
63
|
-
util: "src/util.ts",
|
|
64
|
-
},
|
|
65
|
-
format: "esm",
|
|
66
|
-
platform: "neutral",
|
|
67
|
-
target: "esnext",
|
|
68
|
-
treeshake: true,
|
|
69
|
-
plugins: [stripComments({ type: "keep-jsdoc" })],
|
|
70
|
-
banner: banner.replace("$package", "UTIL"),
|
|
71
|
-
outputOptions: {
|
|
72
|
-
dir: "dist",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
]);
|