@thednp/dommatrix 2.0.7 → 2.0.9

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,76 +1,68 @@
1
- {
2
- "name": "@thednp/dommatrix",
3
- "version": "2.0.7",
4
- "description": "TypeScript shim for DOMMatrix",
5
- "homepage": "https://thednp.github.io/dommatrix/",
6
- "author": "thednp",
7
- "license": "MIT",
8
- "source": "./src/index.ts",
9
- "main": "./dist/dommatrix.js",
10
- "module": "./dist/dommatrix.mjs",
11
- "exports": {
12
- ".": {
13
- "types": "./dist/dommatrix.d.ts",
14
- "require": "./dist/dommatrix.cjs",
15
- "import": "./dist/dommatrix.mjs"
16
- }
17
- },
18
- "scripts": {
19
- "pre-test": "npm run clean-coverage",
20
- "test": "npm run pre-test && npx cypress run",
21
- "cypress": "npm run pre-test && npx cypress open",
22
- "clean-coverage": "rimraf coverage .nyc_output",
23
- "coverage:report": "nyc report --reporter=lcov --reporter=json --reporter=text --reporter=json-summary",
24
- "badges": "npx -p dependency-version-badge update-badge eslint typescript cypress eslint prettier vite",
25
- "format": "prettier --write \"src/**/*.ts\"",
26
- "lint:ts": "eslint -c .eslintrc.cjs --ext .ts src",
27
- "fix:ts": "eslint -c .eslintrc.cjs --ext .ts src --fix",
28
- "build": "npm run lint:ts && vite build && npm run dts && npm run docs",
29
- "dts": "dts-bundle-generator --config ./dts.config.ts",
30
- "docs": "ncp dist/dommatrix.js docs/dommatrix.js && ncp dist/dommatrix.js.map docs/dommatrix.js.map",
31
- "prepublishOnly": "npm update && npm run format && npm run lint:ts && npm run build && npm run badges"
32
- },
33
- "repository": {
34
- "type": "git",
35
- "url": "git+https://github.com/thednp/dommatrix.git"
36
- },
37
- "publishConfig": {
38
- "access": "public",
39
- "registry": "https://registry.npmjs.org/"
40
- },
41
- "keywords": [
42
- "dommatrix",
43
- "cssmatrix",
44
- "shim",
45
- "polyfill",
46
- "nodejs",
47
- "dom",
48
- "css",
49
- "transform",
50
- "typescript"
51
- ],
52
- "bugs": {
53
- "url": "https://github.com/thednp/dommatrix/issues"
54
- },
55
- "devDependencies": {
56
- "@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
57
- "@cypress/code-coverage": "^3.10.8",
58
- "@types/istanbul-lib-instrument": "^1.7.4",
59
- "@typescript-eslint/eslint-plugin": "^5.61.0",
60
- "@typescript-eslint/parser": "^5.61.0",
61
- "cypress": "^13.13.1",
62
- "dts-bundle-generator": "^8.1.2",
63
- "eslint": "^8.44.0",
64
- "eslint-plugin-jsdoc": "^46.4.3",
65
- "eslint-plugin-prefer-arrow": "^1.2.3",
66
- "eslint-plugin-prettier": "^4.2.1",
67
- "istanbul-lib-coverage": "^3.2.0",
68
- "istanbul-lib-instrument": "^5.2.1",
69
- "ncp": "^2.0.0",
70
- "nyc": "^15.1.0",
71
- "prettier": "^2.8.8",
72
- "rimraf": "^5.0.1",
73
- "typescript": "^5.5.4",
74
- "vite": "^5.3.5"
75
- }
76
- }
1
+ {
2
+ "name": "@thednp/dommatrix",
3
+ "version": "2.0.9",
4
+ "description": "TypeScript shim for DOMMatrix",
5
+ "homepage": "https://thednp.github.io/dommatrix/",
6
+ "author": "thednp",
7
+ "license": "MIT",
8
+ "source": "./src/index.ts",
9
+ "main": "./dist/dommatrix.js",
10
+ "module": "./dist/dommatrix.mjs",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/dommatrix.d.ts",
14
+ "require": "./dist/dommatrix.cjs",
15
+ "import": "./dist/dommatrix.mjs"
16
+ }
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/thednp/dommatrix.git"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "keywords": [
27
+ "dommatrix",
28
+ "cssmatrix",
29
+ "shim",
30
+ "polyfill",
31
+ "nodejs",
32
+ "dom",
33
+ "css",
34
+ "transform",
35
+ "typescript"
36
+ ],
37
+ "bugs": {
38
+ "url": "https://github.com/thednp/dommatrix/issues"
39
+ },
40
+ "devDependencies": {
41
+ "@vitest/browser": "^2.1.4",
42
+ "@vitest/coverage-istanbul": "^2.1.4",
43
+ "@vitest/ui": "^2.1.4",
44
+ "playwright": "^1.48.2",
45
+ "typescript": "^5.6.3",
46
+ "vite": "^5.4.10",
47
+ "vite-plugin-dts": "^4.3.0",
48
+ "vitest": "^2.1.4"
49
+ },
50
+ "engines": {
51
+ "node": ">=16",
52
+ "pnpm": ">=8.6.0"
53
+ },
54
+ "scripts": {
55
+ "pre-test": "pnpm clean-coverage",
56
+ "test": "pnpm pre-test && vitest --config vitest.config.mts",
57
+ "test-ui": "pnpm pre-test && vitest --config vitest.config-ui.mts --browser=chromium",
58
+ "clean-coverage": "rm -rf coverage .nyc_output",
59
+ "badges": "npx -p dependency-version-badge update-badge typescript vitest vite",
60
+ "format": "deno fmt src",
61
+ "lint": "pnpm lint:ts && pnpm check:ts",
62
+ "lint:ts": "deno lint src",
63
+ "check:ts": "tsc --noEmit",
64
+ "fix:ts": "deno lint src --fix",
65
+ "build": "vite build && pnpm copy-docs",
66
+ "copy-docs": "cp dist/dommatrix.js docs/dommatrix.js && cp dist/dommatrix.js.map docs/dommatrix.js.map"
67
+ }
68
+ }
package/tsconfig.json CHANGED
File without changes
package/.eslintrc.cjs DELETED
@@ -1,224 +0,0 @@
1
- module.exports = {
2
- "env": {
3
- "browser": true,
4
- "es6": true
5
- },
6
- "extends": [
7
- "plugin:@typescript-eslint/recommended",
8
- "plugin:@typescript-eslint/recommended-requiring-type-checking",
9
- ],
10
- "parser": "@typescript-eslint/parser",
11
- "parserOptions": {
12
- "project": "tsconfig.json",
13
- "sourceType": "module"
14
- },
15
- "plugins": [
16
- "eslint-plugin-jsdoc",
17
- "eslint-plugin-prefer-arrow",
18
- // "eslint-plugin-react",
19
- "@typescript-eslint",
20
- "prettier"
21
- ],
22
- "root": true,
23
- "rules": {
24
- "prettier/prettier": "error",
25
- "@typescript-eslint/adjacent-overload-signatures": "error",
26
- "@typescript-eslint/array-type": [
27
- "error",
28
- {
29
- "default": "array"
30
- }
31
- ],
32
- "@typescript-eslint/ban-types": [
33
- "error",
34
- {
35
- "types": {
36
- "Object": {
37
- "message": "Avoid using the `Object` type. Did you mean `object`?"
38
- },
39
- "Function": {
40
- "message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
41
- },
42
- "Boolean": {
43
- "message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
44
- },
45
- "Number": {
46
- "message": "Avoid using the `Number` type. Did you mean `number`?"
47
- },
48
- "String": {
49
- "message": "Avoid using the `String` type. Did you mean `string`?"
50
- },
51
- "Symbol": {
52
- "message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
53
- }
54
- }
55
- }
56
- ],
57
- "@typescript-eslint/consistent-type-assertions": "error",
58
- "@typescript-eslint/dot-notation": "error",
59
- "@typescript-eslint/explicit-function-return-type": "off",
60
- "@typescript-eslint/explicit-module-boundary-types": "off",
61
- "@typescript-eslint/indent": "off",
62
- "@typescript-eslint/member-delimiter-style": [
63
- "off",
64
- {
65
- "multiline": {
66
- "delimiter": "none",
67
- "requireLast": true
68
- },
69
- "singleline": {
70
- "delimiter": "semi",
71
- "requireLast": false
72
- }
73
- }
74
- ],
75
- // "@typescript-eslint/naming-convention": "error", // keep the original namespace
76
- "@typescript-eslint/no-empty-function": "error",
77
- "@typescript-eslint/no-empty-interface": "error",
78
- "@typescript-eslint/no-explicit-any": "off",
79
- "@typescript-eslint/no-misused-new": "error",
80
- "@typescript-eslint/no-namespace": "error",
81
- "@typescript-eslint/no-parameter-properties": "off",
82
- "@typescript-eslint/no-shadow": [
83
- "error",
84
- {
85
- "hoist": "all"
86
- }
87
- ],
88
- "@typescript-eslint/no-unused-expressions": "error",
89
- "@typescript-eslint/no-use-before-define": "off",
90
- "@typescript-eslint/no-var-requires": "error",
91
- "@typescript-eslint/prefer-for-of": "error",
92
- "@typescript-eslint/prefer-function-type": "error",
93
- "@typescript-eslint/prefer-namespace-keyword": "error",
94
- "@typescript-eslint/quotes": "off",
95
- "@typescript-eslint/semi": [
96
- "off",
97
- null
98
- ],
99
- "@typescript-eslint/triple-slash-reference": [
100
- "error",
101
- {
102
- "path": "always",
103
- "types": "prefer-import",
104
- "lib": "always"
105
- }
106
- ],
107
- "@typescript-eslint/type-annotation-spacing": "off",
108
- "@typescript-eslint/typedef": "off",
109
- "@typescript-eslint/unified-signatures": "error",
110
- "arrow-parens": [
111
- "off",
112
- "always"
113
- ],
114
- "brace-style": [
115
- "off",
116
- "off"
117
- ],
118
- "comma-dangle": "off",
119
- "complexity": "off",
120
- "constructor-super": "error",
121
- "dot-notation": "off",
122
- "eol-last": "off",
123
- "eqeqeq": [
124
- "error",
125
- "smart"
126
- ],
127
- "guard-for-in": "error",
128
- "id-denylist": [
129
- "error",
130
- "any",
131
- "Number",
132
- "number",
133
- "String",
134
- "string",
135
- "Boolean",
136
- "boolean",
137
- "Undefined",
138
- "undefined"
139
- ],
140
- "id-match": "error",
141
- "indent": "off",
142
- "jsdoc/check-alignment": "error",
143
- "jsdoc/check-indentation": "error",
144
- // "jsdoc/newline-after-description": "error",
145
- "linebreak-style": "off",
146
- "max-classes-per-file": [
147
- "error",
148
- 1
149
- ],
150
- "max-len": "off",
151
- "new-parens": "off",
152
- "newline-per-chained-call": "off",
153
- "no-bitwise": "error",
154
- "no-caller": "error",
155
- "no-cond-assign": "error",
156
- "no-console": "error",
157
- "no-debugger": "error",
158
- "no-empty": "error",
159
- "no-empty-function": "off",
160
- "no-eval": "error",
161
- "no-extra-semi": "off",
162
- "no-fallthrough": "off",
163
- "no-invalid-this": "off",
164
- "no-irregular-whitespace": "off",
165
- "no-multiple-empty-lines": "off",
166
- "no-new-wrappers": "error",
167
- "no-shadow": "off",
168
- "no-throw-literal": "error",
169
- "no-trailing-spaces": "off",
170
- "no-undef-init": "error",
171
- "no-underscore-dangle": "off",
172
- "no-unsafe-finally": "error",
173
- "no-unused-expressions": "off",
174
- "no-unused-labels": "error",
175
- "no-use-before-define": "off",
176
- "no-var": "error",
177
- "object-shorthand": "error",
178
- "one-var": [
179
- "error",
180
- "never"
181
- ],
182
- "padded-blocks": [
183
- "off",
184
- {
185
- "blocks": "never"
186
- },
187
- {
188
- "allowSingleLineBlocks": true
189
- }
190
- ],
191
- "prefer-arrow/prefer-arrow-functions": "error",
192
- "prefer-const": "error",
193
- "quote-props": "off",
194
- "quotes": "off",
195
- "radix": "error",
196
- // "react/jsx-curly-spacing": "off",
197
- // "react/jsx-equals-spacing": "off",
198
- // "react/jsx-tag-spacing": [
199
- // "off",
200
- // {
201
- // "afterOpening": "allow",
202
- // "closingSlash": "allow"
203
- // }
204
- // ],
205
- // "react/jsx-wrap-multilines": "off",
206
- "semi": "off",
207
- "space-before-function-paren": "off",
208
- "space-in-parens": [
209
- "off",
210
- "never"
211
- ],
212
- "spaced-comment": [
213
- "error",
214
- "always",
215
- {
216
- "markers": [
217
- "/"
218
- ]
219
- }
220
- ],
221
- "use-isnan": "error",
222
- "valid-typeof": "off"
223
- }
224
- };
package/.prettierrc.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "arrowParens": "avoid",
3
- "bracketSpacing": true,
4
- "endOfLine": "lf",
5
- "bracketSameLine": false,
6
- "jsxSingleQuote": false,
7
- "printWidth": 120,
8
- "proseWrap": "preserve",
9
- "quoteProps": "as-needed",
10
- "semi": true,
11
- "singleQuote": true,
12
- "tabWidth": 2,
13
- "trailingComma": "all",
14
- "useTabs": false
15
- }