@sitelintcode/optimize-image-on-the-client-side 0.0.45 → 0.0.46

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
@@ -2,7 +2,7 @@
2
2
  "name": "@sitelintcode/optimize-image-on-the-client-side",
3
3
  "description": "Optimize image on the client side",
4
4
  "author": "Cezary Tomczyk <cezary.tomczyk@gmail.com> (https://www.sitelint.com/)",
5
- "version": "0.0.45",
5
+ "version": "0.0.46",
6
6
  "license": "MOZILLA PUBLIC LICENSE, VERSION 2.0",
7
7
  "node": ">=16",
8
8
  "main": "dist/optimize-image-on-the-client-side.js",
@@ -20,23 +20,24 @@
20
20
  "./package.json": "./package.json"
21
21
  },
22
22
  "files": [
23
- "dist/*.{js,map,mjs,ts}"
23
+ "dist"
24
24
  ],
25
25
  "scripts": {
26
- "build:dev": "shx rm -rf ./dist && shx mkdir ./dist && npm run scripts:dev && npm run copy:files",
27
- "build:prod": "shx rm -rf ./dist && shx mkdir ./dist && npm run scripts:prod && npm run copy:files",
26
+ "build:dev": "shx rm -rf ./dist && shx mkdir ./dist && npm run scripts:dev && npm run types:build && npm run copy:files",
27
+ "build:prod": "shx rm -rf ./dist && shx mkdir ./dist && npm run scripts:prod && npm run types:build && npm run copy:files",
28
28
  "copy:files": "copyfiles -f ./dist/optimize-image-on-the-client-side.js ./demo",
29
29
  "scripts:dev": "rollup --config ./rollup.config.mjs --environment INCLUDE_DEPS,BUILD:development",
30
30
  "scripts:prod": "rollup --config ./rollup.config.mjs --environment INCLUDE_DEPS,BUILD:production",
31
- "scripts:lint": "eslint ./src --ext .js,.ts",
31
+ "types:build": "tsc --emitDeclarationOnly",
32
+ "scripts:lint": "oxlint --fix ./src",
32
33
  "lint": "npm run markdown:lint && npm run scripts:lint && dpdm --transform=true --tree=false --warning=false ./src/optimize-image-on-the-client-side.ts && npm run test",
33
34
  "markdown:lint": "markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore",
34
- "test": "./node_modules/.bin/jest --config jest.config.js .",
35
- "test:debug": "node --inspect ./node_modules/.bin/jest --runInBand --config jest.config.js .",
36
- "test:coverage": "./node_modules/.bin/jest --config jest.config.js --coverage .",
35
+ "test": "node --no-warnings --import tsx --import ./.test-helpers/setup.ts --test \"src/**/*.test.ts\"",
36
+ "test:debug": "node --inspect --no-warnings --import tsx --import ./.test-helpers/setup.ts --test \"src/**/*.test.ts\"",
37
+ "test:coverage": "node --no-warnings --import tsx --import ./.test-helpers/setup.ts --test --experimental-test-coverage --test-coverage-exclude=\".test-helpers/**\" \"src/**/*.test.ts\"",
37
38
  "watch:dev": "chokidar \"./src/**/*.ts\" -c \"npm run build:dev && echo 'Build completed'\"",
38
39
  "watch:prod": "chokidar \"./src/**/*.ts\" -c \"npm run build:prod && echo 'Build completed'\"",
39
- "release": "release-it"
40
+ "release": "release-it --config release-it.json"
40
41
  },
41
42
  "publishConfig": {
42
43
  "access": "public"
@@ -51,43 +52,41 @@
51
52
  "private": false,
52
53
  "devDependencies": {
53
54
  "@alex_neo/jest-expect-message": "1.0.5",
54
- "@rollup/plugin-commonjs": "28.0.6",
55
- "@rollup/plugin-node-resolve": "16.0.1",
55
+ "@rollup/plugin-commonjs": "29.0.3",
56
+ "@rollup/plugin-node-resolve": "16.0.3",
56
57
  "@types/jest": "30.0.0",
57
- "@types/jquery": "3.5.33",
58
- "@types/jsdom": "21.1.7",
59
- "@types/node": "24.5.2",
58
+ "@types/jquery": "4.0.1",
59
+ "@types/jsdom": "30.0.0",
60
+ "@types/node": "26.6.6",
60
61
  "@types/sharp": "0.32.0",
61
- "@typescript-eslint/eslint-plugin": "8.44.1",
62
- "@typescript-eslint/parser": "8.44.1",
63
- "bootstrap": "5.3.8",
62
+ "bootstrap": "5.3.9",
64
63
  "chokidar-cli": "3.0.0",
65
64
  "copyfiles": "2.4.1",
66
- "dpdm": "3.14.0",
67
- "eslint": "9.36.0",
68
- "eslint-cli": "1.1.1",
69
- "eslint-plugin-import": "2.32.0",
70
- "eslint-plugin-markdown": "5.1.0",
65
+ "dpdm": "4.3.0",
71
66
  "html-loader": "5.1.0",
72
67
  "husky": "9.1.7",
73
- "jest": "30.1.3",
74
- "jest-environment-jsdom": "30.1.2",
75
- "jquery": "3.7.1",
76
- "markdownlint-cli": "0.45.0",
77
- "release-it": "19.0.5",
78
- "rollup": "4.52.2",
79
- "rollup-plugin-dts": "6.2.3",
68
+ "jest": "30.5.2",
69
+ "jest-environment-jsdom": "30.5.2",
70
+ "jquery": "4.1.0",
71
+ "jsdom": "31.0.1",
72
+ "markdownlint-cli": "0.50.0",
73
+ "oxlint": "1.94.0",
74
+ "oxlint-tsgolint": "7.0.2007",
75
+ "release-it": "21.1.2",
76
+ "rollup": "4.68.8",
77
+ "rollup-plugin-dts": "6.5.1",
78
+ "rollup-plugin-esbuild": "6.2.1",
80
79
  "rollup-plugin-html": "0.2.1",
81
80
  "rollup-plugin-json": "4.0.0",
82
81
  "rollup-plugin-minification": "0.2.0",
83
- "rollup-plugin-typescript2": "0.36.0",
84
- "rollup-plugin-visualizer": "6.0.3",
82
+ "rollup-plugin-typescript2": "0.37.0",
83
+ "rollup-plugin-visualizer": "7.1.3",
85
84
  "shelljs-nodecli": "0.1.1",
86
85
  "shx": "0.4.0",
87
86
  "standard-version": "9.5.0",
88
- "typescript": "5.9.2",
89
- "typescript-eslint": "8.44.1",
90
- "webpack-bundle-analyzer": "4.10.2"
87
+ "tsx": "4.23.15",
88
+ "typescript": "7.0.2",
89
+ "webpack-bundle-analyzer": "5.4.3"
91
90
  },
92
91
  "dependencies": {
93
92
  "@ungap/global-this": "0.4.4"