home-assistant-query-selector 4.2.0 → 4.3.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.
Files changed (1) hide show
  1. package/package.json +25 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "home-assistant-query-selector",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Easily query home-assistant DOM elements in an async way",
5
5
  "keywords": [
6
6
  "query-selector",
@@ -33,48 +33,49 @@
33
33
  "license": "Apache-2.0",
34
34
  "repository": {
35
35
  "type": "git",
36
- "url": "git+https://github.com/elchininet/home-assistant-query-selector"
36
+ "url": "git+https://github.com/elchininet/home-assistant-query-selector.git"
37
37
  },
38
38
  "scripts": {
39
39
  "clean": "rm -rf dist || true",
40
40
  "test:clean": "rm -rf .nyc_output coverage || true",
41
- "build": "yarn clean && rollup --config rollup.config.js --bundleConfigAsCjs",
41
+ "build": "pnpm clean && rollup --config rollup.config.js --bundleConfigAsCjs",
42
42
  "lint": "eslint \"src/**/*.ts\"",
43
43
  "coverage:report": "nyc report --reporter=lcov --reporter=text-summary",
44
44
  "test:ts": "tsc --noEmit",
45
45
  "test:run": "playwright test",
46
46
  "test:open": "playwright test --ui",
47
- "test:ci": "yarn demo:ha && yarn start:playwright && yarn stop:ha",
47
+ "test:ci": "pnpm demo:ha && pnpm start:playwright && pnpm stop:ha",
48
48
  "start:ha": "docker run --rm -d -p8123:8123 -v ${PWD}/.hass/config:/config homeassistant/home-assistant:${TAG:-$(cat .hass/config/.HA_VERSION)}",
49
49
  "stop:ha": "docker stop $(docker ps -a -q --filter ancestor=homeassistant/home-assistant:${TAG:-$(cat .hass/config/.HA_VERSION)}) || true",
50
50
  "reset:ha": "git add .hass/config/.HA_VERSION && git checkout .hass/config",
51
- "demo:ha": "yarn test:clean && yarn build && yarn start:ha",
52
- "start:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/$(pwd)/ -w $(pwd) -i mcr.microsoft.com/playwright:$(cat .playwright_docker_version) sh -c \"yarn test:run && exit\"",
53
- "prepare": "yarn build",
54
- "prepublishOnly": "yarn lint && yarn test:ts && yarn test:ci",
51
+ "demo:ha": "pnpm test:clean && pnpm build && pnpm start:ha",
52
+ "start:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/$(pwd)/ -w $(pwd) -i mcr.microsoft.com/playwright:v$npm_package_devDependencies__playwright_test-jammy sh -c \"yarn test:run && exit\"",
53
+ "prepare": "pnpm build",
54
+ "prepublishOnly": "pnpm lint && pnpm test:ts && pnpm test:ci",
55
55
  "version": "git add .",
56
56
  "postversion": "git push && git push --tags"
57
57
  },
58
- "dependencies": {
59
- "shadow-dom-selector": "^4.1.2"
60
- },
61
58
  "devDependencies": {
62
- "@playwright/test": "^1.40.1",
63
- "@rollup/plugin-node-resolve": "^15.2.3",
64
- "@types/eslint": "^8.56.1",
65
- "@types/node": "^20.10.7",
66
- "@types/sinon": "^17.0.2",
67
- "@typescript-eslint/eslint-plugin": "^6.18.0",
68
- "@typescript-eslint/parser": "^6.18.0",
69
- "eslint": "^8.56.0",
70
- "nyc": "^15.1.0",
59
+ "@playwright/test": "1.48.2",
60
+ "@rollup/plugin-node-resolve": "^15.3.0",
61
+ "@rollup/plugin-terser": "^0.4.4",
62
+ "@types/eslint": "^9.6.1",
63
+ "@types/node": "^22.8.7",
64
+ "@types/sinon": "^17.0.3",
65
+ "eslint": "^9.14.0",
66
+ "globals": "^15.11.0",
67
+ "nyc": "^17.1.0",
71
68
  "playwright-test-coverage": "^1.2.12",
72
- "rollup": "^4.9.4",
69
+ "rollup": "^4.24.3",
73
70
  "rollup-plugin-istanbul": "^5.0.0",
74
71
  "rollup-plugin-serve": "^2.0.3",
75
- "rollup-plugin-terser": "^7.0.2",
76
72
  "rollup-plugin-ts": "^3.4.5",
77
- "sinon": "^17.0.1",
78
- "typescript": "^5.3.3"
73
+ "sinon": "^19.0.2",
74
+ "tslib": "^2.8.1",
75
+ "typescript": "^5.6.3",
76
+ "typescript-eslint": "^8.12.2"
77
+ },
78
+ "dependencies": {
79
+ "shadow-dom-selector": "^5.0.1"
79
80
  }
80
81
  }