From 8141ff84e5cff725175349d0f2b3c55d43124d04 Mon Sep 17 00:00:00 2001 From: Max Milton Date: Mon, 25 Apr 2022 09:33:08 +1000 Subject: [PATCH] chore: Update dependencies + fix node v18 bugs (#380) --- package.json | 11 +++-- pnpm-lock.yaml | 126 +++++++++++++++++++++++++++++-------------------- src/router.ts | 2 +- 3 files changed, 83 insertions(+), 56 deletions(-) diff --git a/package.json b/package.json index 823cd20b..a071d5a7 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "test-e2e": "node -r tsm test/e2e/index.ts" }, "dependencies": { - "@ekscss/framework": "^0.0.39", + "@ekscss/framework": "^0.0.40", "fuse.js": "^6.5.3", "remarkable": "^2.0.1", "stage1": "^0.3.0" @@ -32,13 +32,13 @@ "@maxmilton/stylelint-config": "0.0.10", "@types/csso": "5.0.0", "@types/jsdom": "16.2.14", - "@types/node": "17.0.25", + "@types/node": "17.0.26", "@types/remarkable": "2.0.3", "@typescript-eslint/eslint-plugin": "5.20.0", "@typescript-eslint/parser": "5.20.0", "c8": "7.11.2", "csso": "5.0.3", - "ekscss": "0.0.12", + "ekscss": "0.0.13", "esbuild": "0.14.38", "esbuild-minify-templates": "0.8.0", "esbuild-plugin-ekscss": "0.0.10", @@ -63,6 +63,11 @@ "typescript": "4.6.3", "uvu": "0.5.3" }, + "pnpm": { + "overrides": { + "source-map": "~0.8.0-beta.0" + } + }, "prettier": { "arrowParens": "always", "endOfLine": "lf", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 51a75a31..d9d47ca5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,17 +1,20 @@ lockfileVersion: 5.3 +overrides: + source-map: ~0.8.0-beta.0 + specifiers: - '@ekscss/framework': ^0.0.39 + '@ekscss/framework': ^0.0.40 '@maxmilton/stylelint-config': 0.0.10 '@types/csso': 5.0.0 '@types/jsdom': 16.2.14 - '@types/node': 17.0.25 + '@types/node': 17.0.26 '@types/remarkable': 2.0.3 '@typescript-eslint/eslint-plugin': 5.20.0 '@typescript-eslint/parser': 5.20.0 c8: 7.11.2 csso: 5.0.3 - ekscss: 0.0.12 + ekscss: 0.0.13 esbuild: 0.14.38 esbuild-minify-templates: 0.8.0 esbuild-plugin-ekscss: 0.0.10 @@ -40,7 +43,7 @@ specifiers: uvu: 0.5.3 dependencies: - '@ekscss/framework': 0.0.39_ekscss@0.0.12 + '@ekscss/framework': 0.0.40_ekscss@0.0.13 fuse.js: 6.5.3 remarkable: 2.0.1 stage1: 0.3.0 @@ -49,16 +52,16 @@ devDependencies: '@maxmilton/stylelint-config': 0.0.10_stylelint@14.7.1 '@types/csso': 5.0.0 '@types/jsdom': 16.2.14 - '@types/node': 17.0.25 + '@types/node': 17.0.26 '@types/remarkable': 2.0.3 '@typescript-eslint/eslint-plugin': 5.20.0_81f0d1a74f014d44d273bd1612c85fd9 '@typescript-eslint/parser': 5.20.0_eslint@8.14.0+typescript@4.6.3 c8: 7.11.2 csso: 5.0.3 - ekscss: 0.0.12 + ekscss: 0.0.13 esbuild: 0.14.38 esbuild-minify-templates: 0.8.0_esbuild@0.14.38 - esbuild-plugin-ekscss: 0.0.10_ekscss@0.0.12+esbuild@0.14.38 + esbuild-plugin-ekscss: 0.0.10_ekscss@0.0.13+esbuild@0.14.38 eslint: 8.14.0 eslint-config-airbnb-base: 15.0.0_662e1b2e8ef3f6aa5d22c3f7cd670612 eslint-config-airbnb-typescript: 17.0.0_aa8667a1f5901b7e1384ceaca324281d @@ -114,49 +117,49 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@ekscss/framework/0.0.39_ekscss@0.0.12: - resolution: {integrity: sha512-Hlw1mdM4apVFhb2lGKKVfkegvB7Yo+hL+/+w/aZorBwFOfFwDGqxPo99hKiGkPPjSwSttS8s00G+Au6QDgjisw==} + /@ekscss/framework/0.0.40_ekscss@0.0.13: + resolution: {integrity: sha512-xQC0CZ2KG1sklQVmwdDNoiG1zWVBQJ/ozloPH2U7+JdM1vAHco3IO8YVg7EX5K68DBKfydQq6D/oNLh/HxFDcA==} peerDependencies: - ekscss: ^0.0.12 + ekscss: ^0.0.13 peerDependenciesMeta: ekscss: optional: true dependencies: - '@ekscss/plugin-apply': 0.0.8_ekscss@0.0.12 - '@ekscss/plugin-import': 0.0.8_ekscss@0.0.12 - '@ekscss/plugin-prefix': 0.0.7_ekscss@0.0.12 + '@ekscss/plugin-apply': 0.0.9_ekscss@0.0.13 + '@ekscss/plugin-import': 0.0.9_ekscss@0.0.13 + '@ekscss/plugin-prefix': 0.0.8_ekscss@0.0.13 color: 4.2.3 cssremedy: github.com/jensimmons/cssremedy/468e31a dset: 3.1.1 - ekscss: 0.0.12 - stylis: 4.1.0 + ekscss: 0.0.13 + stylis: 4.1.1 dev: false - /@ekscss/plugin-apply/0.0.8_ekscss@0.0.12: - resolution: {integrity: sha512-vuCzcbeaaFeJbaDqyqxUDqAGEFHnLeyD9HU4z9ZdE+j1RYcWhUX542mED/AIRM1FhbtFVyxW5OQSAKvDsw24ng==} + /@ekscss/plugin-apply/0.0.9_ekscss@0.0.13: + resolution: {integrity: sha512-0xwxtr/58ZxkYcaCs/76cE/qz19eJjazHb7MGV7hvlTJj2vOwI1YN+/63jz1RS8jmcstFjy5Kexhrpswmrq9/A==} peerDependencies: - ekscss: ^0.0.12 + ekscss: ^0.0.13 dependencies: - ekscss: 0.0.12 - stylis: 4.1.0 + ekscss: 0.0.13 + stylis: 4.1.1 dev: false - /@ekscss/plugin-import/0.0.8_ekscss@0.0.12: - resolution: {integrity: sha512-LgoRm6LjvnmhnAtmHFNQvZCFJvXCFmJUp3lystPKchVrWsweEJmUvYRZCF7hCCgAg0g3LLo2DpJYphiPZV/fVA==} + /@ekscss/plugin-import/0.0.9_ekscss@0.0.13: + resolution: {integrity: sha512-LE3C4YRZfJEj4B++t+uLvAaFoTw9jTrbZ8T5/dDUWOADvMz2lysJIp4eeFYfFEX0Mvj2NFFA0rLqVhJ3iJaPBQ==} peerDependencies: - ekscss: ^0.0.12 + ekscss: ^0.0.13 dependencies: - ekscss: 0.0.12 - stylis: 4.1.0 + ekscss: 0.0.13 + stylis: 4.1.1 dev: false - /@ekscss/plugin-prefix/0.0.7_ekscss@0.0.12: - resolution: {integrity: sha512-llFv/LG75mvbkguqUvws9tDTDqrBjDsjou+CcMzSC5TvGPW+Czt243/HI4WVMLdzwtawMRN2SOfZcf+/t0sekA==} + /@ekscss/plugin-prefix/0.0.8_ekscss@0.0.13: + resolution: {integrity: sha512-oEU1hSYyE4MgcQK66j0HC3EACZRIqDRVywpljqii1xbzaGq/wsrU2Jpp1juRBpyvHmzqdO1XJD9jL5Uhz0pWHA==} peerDependencies: - ekscss: ^0.0.12 + ekscss: ^0.0.13 dependencies: - ekscss: 0.0.12 - stylis: 4.1.0 + ekscss: 0.0.13 + stylis: 4.1.1 dev: false /@eslint/eslintrc/1.2.2: @@ -293,7 +296,7 @@ packages: /@types/jsdom/16.2.14: resolution: {integrity: sha512-6BAy1xXEmMuHeAJ4Fv4yXKwBDTGTOseExKE3OaHiNycdHdZw59KfYzrt0DkDluvwmik1HRt6QS7bImxUmpSy+w==} dependencies: - '@types/node': 17.0.25 + '@types/node': 17.0.26 '@types/parse5': 6.0.3 '@types/tough-cookie': 4.0.2 dev: true @@ -310,8 +313,8 @@ packages: resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} dev: true - /@types/node/17.0.25: - resolution: {integrity: sha512-wANk6fBrUwdpY4isjWrKTufkrXdu1D2YHCot2fD/DfWxF5sMrVSA+KN7ydckvaTCh0HiqX9IVl0L5/ZoXg5M7w==} + /@types/node/17.0.26: + resolution: {integrity: sha512-z/FG/6DUO7pnze3AE3TBGIjGGKkvCcGcWINe1C7cADY8hKLJPDYpzsNE37uExQ4md5RFtTCvg+M8Mu1Enyeg2A==} dev: true /@types/normalize-package-data/2.4.1: @@ -345,7 +348,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 17.0.25 + '@types/node': 17.0.26 dev: true optional: true @@ -1008,12 +1011,12 @@ packages: engines: {node: '>=4'} dev: false - /ekscss/0.0.12: - resolution: {integrity: sha512-WuTgu9V5mDm+KXSbr7o14FJzm2KZ+D1kUikIwwRKqbS/O246VWnBROkXwar1CwOW6z6/6DVF/+M81rMcjB7BNQ==} + /ekscss/0.0.13: + resolution: {integrity: sha512-vn04jyRhoC+Q4eCmENJV+XUc8SjpAYZnMgb7eTf2IXeux6Gxq3+vfbEbkfiCHhn8vKKFyVpTD5dN2446PdWIyg==} dependencies: '@types/stylis': 4.0.2 - source-map: 0.7.3 - stylis: 4.1.0 + source-map: 0.8.0-beta.0 + stylis: 4.1.1 dev: true /emoji-regex/8.0.0: @@ -1230,13 +1233,13 @@ packages: dev: true optional: true - /esbuild-plugin-ekscss/0.0.10_ekscss@0.0.12+esbuild@0.14.38: + /esbuild-plugin-ekscss/0.0.10_ekscss@0.0.13+esbuild@0.14.38: resolution: {integrity: sha512-jBGZC+Ov2bMRgl+QFYlgtiwuntkShw5XR5u82YclU787J6saZKpwjSXRdQnHUDLS47v8Aim6xZ6lYlpjNNiB/g==} peerDependencies: ekscss: ^0.0.12 esbuild: ^0.13.0 || ^0.14.0 dependencies: - ekscss: 0.0.12 + ekscss: 0.0.13 esbuild: 0.14.38 joycon: 3.1.1 dev: true @@ -1335,7 +1338,7 @@ packages: esutils: 2.0.3 optionator: 0.8.3 optionalDependencies: - source-map: 0.6.1 + source-map: 0.8.0-beta.0 dev: true /eslint-config-airbnb-base/15.0.0_662e1b2e8ef3f6aa5d22c3f7cd670612: @@ -2298,6 +2301,10 @@ packages: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} dev: true + /lodash.sortby/4.7.0: + resolution: {integrity: sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=} + dev: true + /lodash.truncate/4.4.2: resolution: {integrity: sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=} dev: true @@ -3118,17 +3125,14 @@ packages: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} dependencies: buffer-from: 1.1.2 - source-map: 0.6.1 - dev: true - - /source-map/0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} - engines: {node: '>=0.10.0'} + source-map: 0.8.0-beta.0 dev: true - /source-map/0.7.3: - resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==} + /source-map/0.8.0-beta.0: + resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} engines: {node: '>= 8'} + dependencies: + whatwg-url: 7.1.0 dev: true /sourcemap-codec/1.4.8: @@ -3305,8 +3309,8 @@ packages: - supports-color dev: true - /stylis/4.1.0: - resolution: {integrity: sha512-SrSDzNasOCBTo7C2N9geFwydg/2bmdkWXd4gJirtq82m5JBYtR2+Ialck8czmfBLIdPxCOotlgJESPa8C1RqvA==} + /stylis/4.1.1: + resolution: {integrity: sha512-lVrM/bNdhVX2OgBFNa2YJ9Lxj7kPzylieHd3TNjuGE0Re9JB7joL5VUKOVH1kdNNJTgGPpT8hmwIAPLaSyEVFQ==} /supports-color/5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} @@ -3369,7 +3373,7 @@ packages: dependencies: acorn: 8.7.0 commander: 2.20.3 - source-map: 0.7.3 + source-map: 0.8.0-beta.0 source-map-support: 0.5.21 dev: true @@ -3414,6 +3418,12 @@ packages: universalify: 0.1.2 dev: true + /tr46/1.0.1: + resolution: {integrity: sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=} + dependencies: + punycode: 2.1.1 + dev: true + /tr46/3.0.0: resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} engines: {node: '>=12'} @@ -3568,6 +3578,10 @@ packages: xml-name-validator: 4.0.0 dev: true + /webidl-conversions/4.0.2: + resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} + dev: true + /webidl-conversions/7.0.0: resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} engines: {node: '>=12'} @@ -3593,6 +3607,14 @@ packages: webidl-conversions: 7.0.0 dev: true + /whatwg-url/7.1.0: + resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} + dependencies: + lodash.sortby: 4.7.0 + tr46: 1.0.1 + webidl-conversions: 4.0.2 + dev: true + /which-boxed-primitive/1.0.2: resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} dependencies: diff --git a/src/router.ts b/src/router.ts index a41a20fb..914c024e 100644 --- a/src/router.ts +++ b/src/router.ts @@ -285,7 +285,7 @@ export function Router(): RouterComponent { const handleHashChange = () => loadRoute(window.location.hash.slice(1)); - window.onhashchange = handleHashChange; + window.addEventListener('hashchange', handleHashChange); // load initial route handleHashChange();