diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 5fb1eea..ad885a4 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -3,7 +3,7 @@ module.exports = { extends: [ 'plugin:css/recommended', 'plugin:mdx/recommended', - 'plugin:markdown/recommended', + 'plugin:markdown/recommended-legacy', 'plugin:astro/recommended' ], "plugins": [ diff --git a/README.md b/README.md index 0a26087..daa5891 100644 --- a/README.md +++ b/README.md @@ -219,3 +219,8 @@ All commands are run from the root of the project, from a terminal: - Upgraded to latest packages and astro-icon 1.x - 3.3.1: Maintenance: - Upgraded to latest packages and fixed astro check errors +- 3.3.2: Maintenance: + - Upgraded to latest packages + - Fixed search not working due to stricter alpine checking + - Migrated to standard astro tsconfig.json + - Fixed astro check errors diff --git a/package.json b/package.json index 77dac0a..236a75a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hello-astro", "description": "Hello Astro is a full featured Astro corporate/marketing/blog starter theme written in Typescript and TailwindCSS. It supports Markdown and MDX based pages and blog posts.", - "version": "3.3.1", + "version": "3.3.2", "scripts": { "dev": "astro dev", "clean": "rm -rf node_modules .astro dist", @@ -24,12 +24,12 @@ "@tailwindcss/forms": "^0.5.7", "@tailwindcss/line-clamp": "^0.4.4", "@tailwindcss/typography": "^0.5.10", - "@types/alpinejs": "^3.13.7", + "@types/alpinejs": "^3.13.9", "@types/leaflet": "^1.9.8", "@types/photoswipe": "^4.1.6", "@typescript-eslint/parser": "^7.2.0", "alpinejs": "^3.13.7", - "astro": "^4.5.3", + "astro": "^4.5.5", "astro-robots-txt": "^1.0.0", "eslint": "^8.57.0", "eslint-plugin-astro": "^0.31.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9f9e720..c0461b0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ dependencies: version: 0.5.9(prettier-plugin-astro@0.13.0)(prettier@3.2.5)(typescript@5.4.2) '@astrojs/markdoc': specifier: ^0.9.2 - version: 0.9.2(astro@4.5.3) + version: 0.9.2(astro@4.5.5) '@astrojs/rss': specifier: ^4.0.5 version: 4.0.5 @@ -60,16 +60,16 @@ devDependencies: version: 1.0.2 '@astrojs/alpinejs': specifier: ^0.4.0 - version: 0.4.0(@types/alpinejs@3.13.7)(alpinejs@3.13.7) + version: 0.4.0(@types/alpinejs@3.13.9)(alpinejs@3.13.7) '@astrojs/mdx': specifier: ^2.2.0 - version: 2.2.0(astro@4.5.3) + version: 2.2.0(astro@4.5.5) '@astrojs/sitemap': specifier: ^3.1.1 version: 3.1.1 '@astrojs/tailwind': specifier: ^5.1.0 - version: 5.1.0(astro@4.5.3)(tailwindcss@3.4.1) + version: 5.1.0(astro@4.5.5)(tailwindcss@3.4.1) '@tailwindcss/aspect-ratio': specifier: ^0.4.2 version: 0.4.2(tailwindcss@3.4.1) @@ -83,8 +83,8 @@ devDependencies: specifier: ^0.5.10 version: 0.5.10(tailwindcss@3.4.1) '@types/alpinejs': - specifier: ^3.13.7 - version: 3.13.7 + specifier: ^3.13.9 + version: 3.13.9 '@types/leaflet': specifier: ^1.9.8 version: 1.9.8 @@ -98,8 +98,8 @@ devDependencies: specifier: ^3.13.7 version: 3.13.7 astro: - specifier: ^4.5.3 - version: 4.5.3(typescript@5.4.2) + specifier: ^4.5.5 + version: 4.5.5(typescript@5.4.2) astro-robots-txt: specifier: ^1.0.0 version: 1.0.0 @@ -204,13 +204,13 @@ packages: resolution: {integrity: sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==} dev: false - /@astrojs/alpinejs@0.4.0(@types/alpinejs@3.13.7)(alpinejs@3.13.7): + /@astrojs/alpinejs@0.4.0(@types/alpinejs@3.13.9)(alpinejs@3.13.7): resolution: {integrity: sha512-68BY1CA0XuielLW3WdX2sfh9F4sSTnFqQ//IE9AditbiYJ77HJDb4uZx07pTFDtr1jOMU7lCvH+iS9gmNafM1g==} peerDependencies: '@types/alpinejs': ^3.0.0 alpinejs: ^3.0.0 dependencies: - '@types/alpinejs': 3.13.7 + '@types/alpinejs': 3.13.9 alpinejs: 3.13.7 dev: true @@ -220,7 +220,7 @@ packages: peerDependencies: typescript: ^5.0.0 dependencies: - '@astrojs/language-server': 2.8.1(prettier-plugin-astro@0.13.0)(prettier@3.2.5)(typescript@5.4.2) + '@astrojs/language-server': 2.8.3(prettier-plugin-astro@0.13.0)(prettier@3.2.5)(typescript@5.4.2) chokidar: 3.6.0 fast-glob: 3.3.2 kleur: 4.1.5 @@ -240,8 +240,8 @@ packages: /@astrojs/internal-helpers@0.3.0: resolution: {integrity: sha512-tGmHvrhpzuz0JBHaJX8GywN9g4rldVNHtkoVDC3m/DdzBO70jGoVuc0uuNVglRYnsdwkbG0K02Iw3nOOR3/Y4g==} - /@astrojs/language-server@2.8.1(prettier-plugin-astro@0.13.0)(prettier@3.2.5)(typescript@5.4.2): - resolution: {integrity: sha512-IajNH+sFX0MQvYc2lXO4urwDzFUHR0yR7Ahf3SXD9Fc/hjDXBJ76xKl4ZX28nMlo/loVO3oPBkglCVSltCS5fw==} + /@astrojs/language-server@2.8.3(prettier-plugin-astro@0.13.0)(prettier@3.2.5)(typescript@5.4.2): + resolution: {integrity: sha512-tO47Lcue7OPXfIDbKVDcshwpC13yaWaTVLyiSOnQ2Yng2Z2SgcJf06Cj4xMpJqGp6s7/o/gcQWYUTl2bpkWKig==} hasBin: true peerDependencies: prettier: ^3.0.0 @@ -262,19 +262,19 @@ packages: fast-glob: 3.3.2 prettier: 3.2.5 prettier-plugin-astro: 0.13.0 - volar-service-css: 0.0.32(@volar/language-service@2.1.2) - volar-service-emmet: 0.0.32(@volar/language-service@2.1.2) - volar-service-html: 0.0.32(@volar/language-service@2.1.2) - volar-service-prettier: 0.0.32(@volar/language-service@2.1.2)(prettier@3.2.5) - volar-service-typescript: 0.0.32(@volar/language-service@2.1.2) - volar-service-typescript-twoslash-queries: 0.0.32(@volar/language-service@2.1.2) + volar-service-css: 0.0.34(@volar/language-service@2.1.2) + volar-service-emmet: 0.0.34(@volar/language-service@2.1.2) + volar-service-html: 0.0.34(@volar/language-service@2.1.2) + volar-service-prettier: 0.0.34(@volar/language-service@2.1.2)(prettier@3.2.5) + volar-service-typescript: 0.0.34(@volar/language-service@2.1.2) + volar-service-typescript-twoslash-queries: 0.0.34(@volar/language-service@2.1.2) vscode-html-languageservice: 5.1.2 vscode-uri: 3.0.8 transitivePeerDependencies: - typescript dev: false - /@astrojs/markdoc@0.9.2(astro@4.5.3): + /@astrojs/markdoc@0.9.2(astro@4.5.5): resolution: {integrity: sha512-E7CMTNvz1dFgx7+s87ICwEG2BlKl7FIju7NCYfIbe7Feelk259gK7DsDqMvq62f3eHYqZJiXOMpN0zPrKVu6CQ==} engines: {node: '>=18.14.1'} peerDependencies: @@ -283,7 +283,7 @@ packages: '@astrojs/internal-helpers': 0.3.0 '@astrojs/prism': 3.0.0 '@markdoc/markdoc': 0.3.5 - astro: 4.5.3(typescript@5.4.2) + astro: 4.5.5(typescript@5.4.2) esbuild: 0.19.12 github-slugger: 2.0.0 gray-matter: 4.0.3 @@ -310,7 +310,7 @@ packages: remark-parse: 11.0.0 remark-rehype: 11.1.0 remark-smartypants: 2.1.0 - shiki: 1.1.7 + shiki: 1.2.0 unified: 11.0.4 unist-util-remove-position: 5.0.0 unist-util-visit: 5.0.0 @@ -319,7 +319,7 @@ packages: transitivePeerDependencies: - supports-color - /@astrojs/mdx@2.2.0(astro@4.5.3): + /@astrojs/mdx@2.2.0(astro@4.5.5): resolution: {integrity: sha512-EkcCniYdGwsh9k5LknqRrz/UyOnMNXdRk7fgDAw/zUDKnm7zgQAG8hIx0FxG1L2IINxLfu7IcjgZb3f5TFpxKw==} engines: {node: '>=18.14.1'} peerDependencies: @@ -328,7 +328,7 @@ packages: '@astrojs/markdown-remark': 4.3.0 '@mdx-js/mdx': 3.0.1 acorn: 8.11.3 - astro: 4.5.3(typescript@5.4.2) + astro: 4.5.5(typescript@5.4.2) es-module-lexer: 1.4.1 estree-util-visit: 2.0.0 github-slugger: 2.0.0 @@ -354,7 +354,7 @@ packages: /@astrojs/rss@4.0.5: resolution: {integrity: sha512-IyJVL6z09AQtxbgLaAwebT3T5YKe4oTHDesqydJv1KLHw+zEzzMCFuuNsEyxjiqu7df9+DDCpDXLj/WRiEUXvw==} dependencies: - fast-xml-parser: 4.3.5 + fast-xml-parser: 4.3.6 kleur: 4.1.5 dev: false @@ -365,13 +365,13 @@ packages: zod: 3.22.4 dev: true - /@astrojs/tailwind@5.1.0(astro@4.5.3)(tailwindcss@3.4.1): + /@astrojs/tailwind@5.1.0(astro@4.5.5)(tailwindcss@3.4.1): resolution: {integrity: sha512-BJoCDKuWhU9FT2qYg+fr6Nfb3qP4ShtyjXGHKA/4mHN94z7BGcmauQK23iy+YH5qWvTnhqkd6mQPQ1yTZTe9Ig==} peerDependencies: astro: ^3.0.0 || ^4.0.0 tailwindcss: ^3.0.24 dependencies: - astro: 4.5.3(typescript@5.4.2) + astro: 4.5.5(typescript@5.4.2) autoprefixer: 10.4.18(postcss@8.4.35) postcss: 8.4.35 postcss-load-config: 4.0.2(postcss@8.4.35) @@ -1149,8 +1149,8 @@ packages: requiresBuild: true optional: true - /@shikijs/core@1.1.7: - resolution: {integrity: sha512-gTYLUIuD1UbZp/11qozD3fWpUTuMqPSf3svDMMrL0UmlGU7D9dPw/V1FonwAorCUJBltaaESxq90jrSjQyGixg==} + /@shikijs/core@1.2.0: + resolution: {integrity: sha512-OlFvx+nyr5C8zpcMBnSGir0YPD6K11uYhouqhNmm1qLiis4GA7SsGtu07r9gKS9omks8RtQqHrJL4S+lqWK01A==} /@sindresorhus/is@4.6.0: resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} @@ -1205,8 +1205,8 @@ packages: '@types/estree': 1.0.5 dev: true - /@types/alpinejs@3.13.7: - resolution: {integrity: sha512-9VH1N/414xJy9FJXXAfwQjbX+i+Qr9Xs8xAI1xBdD79X2EvHnAen5qRiSsbJuhqQJ9J798W3CUva21EidO3krw==} + /@types/alpinejs@3.13.9: + resolution: {integrity: sha512-R6Xy2K+S7811EuXz4CekBaQKtrAJsLm+Hw8kke0R9IwfoMxJsrEqG2TAkMqQa8gAKZb2hClOcNdPql5vH+ku3g==} dev: true /@types/babel__core@7.20.5: @@ -1237,13 +1237,13 @@ packages: /@types/cheerio@0.22.35: resolution: {integrity: sha512-yD57BchKRvTV+JD53UZ6PD8KWY5g5rvvMLRnZR3EQBCZXiDT/HR+pKpMzFGlWNhFrXlo7VPZXtKvIEwZkAWOIA==} dependencies: - '@types/node': 20.11.27 + '@types/node': 20.11.28 dev: false /@types/concat-stream@2.0.3: resolution: {integrity: sha512-3qe4oQAPNwVNwK4C9c8u+VJqv9kez+2MR4qJpoPFfXtgxxif1QbFusvXzK0/Wra2VX07smostI2VMmJNSpZjuQ==} dependencies: - '@types/node': 20.11.27 + '@types/node': 20.11.28 dev: true /@types/d3-scale-chromatic@3.0.3: @@ -1344,8 +1344,8 @@ packages: resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} dev: true - /@types/node@20.11.27: - resolution: {integrity: sha512-qyUZfMnCg1KEz57r7pzFtSGt49f6RPkPBis3Vo4PbS7roQEDn22hiHzl/Lo1q4i4hDEgBJmBF/NTNg2XR0HbFg==} + /@types/node@20.11.28: + resolution: {integrity: sha512-M/GPWVS2wLkSkNHVeLkrF2fD5Lx5UC4PxA0uZcKc6QqbIQUJyW1jVjueJYi1z8n0I5PxYrtpnPnWglE+y9A0KA==} dependencies: undici-types: 5.26.5 @@ -1366,7 +1366,7 @@ packages: /@types/tar@6.1.11: resolution: {integrity: sha512-ThA1WD8aDdVU4VLuyq5NEqriwXErF5gEIJeyT6gHBWU7JtSmW2a5qjNv3/vR82O20mW+1vhmeZJfBQPT3HCugg==} dependencies: - '@types/node': 20.11.27 + '@types/node': 20.11.28 minipass: 4.2.8 dev: false @@ -1380,7 +1380,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.11.27 + '@types/node': 20.11.28 dev: false optional: true @@ -1768,8 +1768,8 @@ packages: - typescript dev: false - /astro@4.5.3(typescript@5.4.2): - resolution: {integrity: sha512-MEiLeAr3+THeadTZCQ4U+DI9VTTUZdYrPEPedSKmQwqnkiPkLjpLgx4yOcyH7Yp4t57+SWiC6W0rt7lPGM36Fg==} + /astro@4.5.5(typescript@5.4.2): + resolution: {integrity: sha512-gZ3jR06dLmY9/SMkKMr+3pRSrUjhuwjnXt+9abFJV3WGwhCnLZbSNsTBrLMsaFHpAS1ReJChcTWyKRCvs/jCIQ==} engines: {node: '>=18.14.1', npm: '>=6.14.0'} hasBin: true dependencies: @@ -1823,7 +1823,7 @@ packages: rehype: 13.0.1 resolve: 1.22.8 semver: 7.6.0 - shiki: 1.1.7 + shiki: 1.2.0 string-width: 7.1.0 strip-ansi: 7.1.0 tsconfck: 3.0.3(typescript@5.4.2) @@ -1858,12 +1858,6 @@ packages: synckit: 0.9.0 dev: true - /asynciterator.prototype@1.0.0: - resolution: {integrity: sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==} - dependencies: - has-symbols: 1.0.3 - dev: true - /autoprefixer@10.4.18(postcss@8.4.35): resolution: {integrity: sha512-1DKbDfsr6KUElM6wg+0zRNkB/Q7WcKYAaK+pzXn+Xqmszm/5Xa9coeNdtP88Vi+dPzZnMjhge8GIV49ZQkDa+g==} engines: {node: ^10 || ^12 || >=14} @@ -1948,8 +1942,8 @@ packages: /base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - /binary-extensions@2.2.0: - resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + /binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} /bl@4.1.0: @@ -2010,7 +2004,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001597 - electron-to-chromium: 1.4.704 + electron-to-chromium: 1.4.708 node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) @@ -2639,6 +2633,33 @@ packages: resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==} dev: true + /data-view-buffer@1.0.1: + resolution: {integrity: sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: true + + /data-view-byte-length@1.0.1: + resolution: {integrity: sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: true + + /data-view-byte-offset@1.0.0: + resolution: {integrity: sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: true + /dayjs@1.11.10: resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==} dev: false @@ -2788,8 +2809,8 @@ packages: /eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - /electron-to-chromium@1.4.704: - resolution: {integrity: sha512-OK01+86Qvby1V6cTiowVbhp25aX4DLZnwar+NocAOXdzKAByd+jq5156bmo4kHwevWMknznW18Y/Svfk2dU91A==} + /electron-to-chromium@1.4.708: + resolution: {integrity: sha512-iWgEEvREL4GTXXHKohhh33+6Y8XkPI5eHihDmm8zUk5Zo7HICEW+wI/j5kJ2tbuNUCXJ/sNXa03ajW635DiJXA==} /elkjs@0.9.2: resolution: {integrity: sha512-2Y/RaA1pdgSHpY0YG4TYuYCD2wh97CRvu22eLG3Kz0pgQ/6KbIFTxsTnDc4MH/6hFlg2L/9qXrDMG0nMjP63iw==} @@ -2882,6 +2903,57 @@ packages: which-typed-array: 1.1.15 dev: true + /es-abstract@1.23.0: + resolution: {integrity: sha512-vmuE7Uoevk2xkwu5Gwa7RfJk/ebVV6xRv7KuZNbUglmJHhWPMbLL20ztreVpBbdxBZijETx3Aml3NssX4SFMvQ==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.1 + arraybuffer.prototype.slice: 1.0.3 + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + data-view-buffer: 1.0.1 + data-view-byte-length: 1.0.1 + data-view-byte-offset: 1.0.0 + es-define-property: 1.0.0 + es-errors: 1.3.0 + es-set-tostringtag: 2.0.3 + es-to-primitive: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.4 + get-symbol-description: 1.0.2 + globalthis: 1.0.3 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + hasown: 2.0.2 + internal-slot: 1.0.7 + is-array-buffer: 3.0.4 + is-callable: 1.2.7 + is-data-view: 1.0.1 + is-negative-zero: 2.0.3 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.3 + is-string: 1.0.7 + is-typed-array: 1.1.13 + is-weakref: 1.0.2 + object-inspect: 1.13.1 + object-keys: 1.1.1 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.2 + safe-array-concat: 1.1.2 + safe-regex-test: 1.0.3 + string.prototype.trim: 1.2.8 + string.prototype.trimend: 1.0.7 + string.prototype.trimstart: 1.0.7 + typed-array-buffer: 1.0.2 + typed-array-byte-length: 1.0.1 + typed-array-byte-offset: 1.0.2 + typed-array-length: 1.0.5 + unbox-primitive: 1.0.2 + which-typed-array: 1.1.15 + dev: true + /es-define-property@1.0.0: resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} engines: {node: '>= 0.4'} @@ -2894,14 +2966,13 @@ packages: engines: {node: '>= 0.4'} dev: true - /es-iterator-helpers@1.0.17: - resolution: {integrity: sha512-lh7BsUqelv4KUbR5a/ZTaGGIMLCjPGPqJ6q+Oq24YP0RdyptX1uzm4vvaqzk7Zx3bpl/76YLTTDj9L7uYQ92oQ==} + /es-iterator-helpers@1.0.18: + resolution: {integrity: sha512-scxAJaewsahbqTYrGKJihhViaM6DDZDDoucfvzNbK0pOren1g/daDQ3IAhzn+1G14rBG7w+i5N+qul60++zlKA==} engines: {node: '>= 0.4'} dependencies: - asynciterator.prototype: 1.0.0 call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.5 + es-abstract: 1.23.0 es-errors: 1.3.0 es-set-tostringtag: 2.0.3 function-bind: 1.1.2 @@ -3071,7 +3142,7 @@ packages: axobject-query: 3.2.1 damerau-levenshtein: 1.0.8 emoji-regex: 9.2.2 - es-iterator-helpers: 1.0.17 + es-iterator-helpers: 1.0.18 eslint: 8.57.0 hasown: 2.0.2 jsx-ast-utils: 3.3.5 @@ -3353,8 +3424,8 @@ packages: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} dev: true - /fast-xml-parser@4.3.5: - resolution: {integrity: sha512-sWvP1Pl8H03B8oFJpFR3HE31HUfwtX7Rlf9BNsvdpujD4n7WMhfmu8h9wOV2u+c1k0ZilTADhPqypzx2J690ZQ==} + /fast-xml-parser@4.3.6: + resolution: {integrity: sha512-M2SovcRxD4+vC493Uc2GZVcZaj66CCJhWurC4viynVSTvrpErCShNcDz1lAho6n9REQKvL/ll4A4/fw6Y9z8nw==} hasBin: true dependencies: strnum: 1.0.5 @@ -4008,7 +4079,7 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} dependencies: - binary-extensions: 2.2.0 + binary-extensions: 2.3.0 /is-boolean-object@1.1.2: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} @@ -4032,6 +4103,13 @@ packages: dependencies: hasown: 2.0.2 + /is-data-view@1.0.1: + resolution: {integrity: sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==} + engines: {node: '>= 0.4'} + dependencies: + is-typed-array: 1.1.13 + dev: true + /is-date-object@1.0.5: resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} engines: {node: '>= 0.4'} @@ -5385,7 +5463,7 @@ packages: acorn: 8.11.3 pathe: 1.1.2 pkg-types: 1.0.3 - ufo: 1.4.0 + ufo: 1.5.1 dev: false /mri@1.2.0: @@ -6086,7 +6164,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.5 + es-abstract: 1.23.0 es-errors: 1.3.0 get-intrinsic: 1.2.4 globalthis: 1.0.3 @@ -6448,10 +6526,10 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - /shiki@1.1.7: - resolution: {integrity: sha512-9kUTMjZtcPH3i7vHunA6EraTPpPOITYTdA5uMrvsJRexktqP0s7P3s9HVK80b4pP42FRVe03D7fT3NmJv2yYhw==} + /shiki@1.2.0: + resolution: {integrity: sha512-xLhiTMOIUXCv5DqJ4I70GgQCtdlzsTqFLZWcMHHG3TAieBUbvEGthdrlPDlX4mL/Wszx9C6rEcxU6kMlg4YlxA==} dependencies: - '@shikijs/core': 1.1.7 + '@shikijs/core': 1.2.0 /side-channel@1.0.6: resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} @@ -6986,8 +7064,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - /ufo@1.4.0: - resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==} + /ufo@1.5.1: + resolution: {integrity: sha512-HGyF79+/qZ4soRvM+nHERR2pJ3VXDZ/8sL1uLahdgEDf580NkgiWOxLk33FetExqOWp352JZRsgXbG/4MaGOSg==} dev: false /unbox-primitive@1.0.2: @@ -7016,7 +7094,7 @@ packages: '@types/concat-stream': 2.0.3 '@types/debug': 4.1.12 '@types/is-empty': 1.2.3 - '@types/node': 20.11.27 + '@types/node': 20.11.28 '@types/unist': 3.0.2 '@ungap/structured-clone': 1.2.0 concat-stream: 2.0.0 @@ -7316,8 +7394,8 @@ packages: dependencies: vite: 5.1.6 - /volar-service-css@0.0.32(@volar/language-service@2.1.2): - resolution: {integrity: sha512-ZqA2CuC9w008jiJ3nzx9bgAhdJXElcYTADlOQgJ0gPMRmXrO8P09gW63XZfJvsPVKizC5t7Pf6Jph9c78BpI/Q==} + /volar-service-css@0.0.34(@volar/language-service@2.1.2): + resolution: {integrity: sha512-C7ua0j80ZD7bsgALAz/cA1bykPehoIa5n+3+Ccr+YLpj0fypqw9iLUmGLX11CqzqNCO2XFGe/1eXB/c+SWrF/g==} peerDependencies: '@volar/language-service': ~2.1.0 peerDependenciesMeta: @@ -7330,8 +7408,8 @@ packages: vscode-uri: 3.0.8 dev: false - /volar-service-emmet@0.0.32(@volar/language-service@2.1.2): - resolution: {integrity: sha512-B62l1PD6Wfcvun7cXFtNez1DnUYGX+soV8Uu5eO275v8zGc2vueR17rEgpPqxcaMQhxpk/WLKt3OPAMERu7yYg==} + /volar-service-emmet@0.0.34(@volar/language-service@2.1.2): + resolution: {integrity: sha512-ubQvMCmHPp8Ic82LMPkgrp9ot+u2p/RDd0RyT0EykRkZpWsagHUF5HWkVheLfiMyx2rFuWx/+7qZPOgypx6h6g==} peerDependencies: '@volar/language-service': ~2.1.0 peerDependenciesMeta: @@ -7343,8 +7421,8 @@ packages: vscode-html-languageservice: 5.1.2 dev: false - /volar-service-html@0.0.32(@volar/language-service@2.1.2): - resolution: {integrity: sha512-pFifUlywYUPx+Oz5MaGYVOiiUMkc80MI0Kyz+s+uuR26qB1pSuoqpcCr/02qMP19QdWDOD5Ak/c5B0oaBrbKMQ==} + /volar-service-html@0.0.34(@volar/language-service@2.1.2): + resolution: {integrity: sha512-kMEneea1tQbiRcyKavqdrSVt8zV06t+0/3pGkjO3gV6sikXTNShIDkdtB4Tq9vE2cQdM50TuS7utVV7iysUxHw==} peerDependencies: '@volar/language-service': ~2.1.0 peerDependenciesMeta: @@ -7357,8 +7435,8 @@ packages: vscode-uri: 3.0.8 dev: false - /volar-service-prettier@0.0.32(@volar/language-service@2.1.2)(prettier@3.2.5): - resolution: {integrity: sha512-4skqVzj29u7GtM1VQJ4R0Ai0gzZshsZIzWKw2+IjzobvWn094ND77xX/qCaEHhusayqN2SyyAiauwDO5mNTj5w==} + /volar-service-prettier@0.0.34(@volar/language-service@2.1.2)(prettier@3.2.5): + resolution: {integrity: sha512-BNfJ8FwfPi1Wm/JkuzNjraOLdtKieGksNT/bDyquygVawv1QUzO2HB1hiMKfZGdcSFG5ZL9R0j7bBfRTfXA2gg==} peerDependencies: '@volar/language-service': ~2.1.0 prettier: ^2.2 || ^3.0 @@ -7373,8 +7451,8 @@ packages: vscode-uri: 3.0.8 dev: false - /volar-service-typescript-twoslash-queries@0.0.32(@volar/language-service@2.1.2): - resolution: {integrity: sha512-eaMjxu1c1qlc3n1Ug7pwQ9tIaRkPUfNYIKxvutUSSomNlwU8eQvJQOg+4qV4c3239dYcaU6FdhT3Bb+U1NY52A==} + /volar-service-typescript-twoslash-queries@0.0.34(@volar/language-service@2.1.2): + resolution: {integrity: sha512-XAY2YtWKUp6ht89gxt3L5Dr46LU45d/VlBkj1KXUwNlinpoWiGN4Nm3B6DRF3VoBThAnQgm4c7WD0S+5yTzh+w==} peerDependencies: '@volar/language-service': ~2.1.0 peerDependenciesMeta: @@ -7384,8 +7462,8 @@ packages: '@volar/language-service': 2.1.2 dev: false - /volar-service-typescript@0.0.32(@volar/language-service@2.1.2): - resolution: {integrity: sha512-pgVYD/Q+J0h5gN4zgioVyUEH3b8Hpc5RkuXI5x8KeEGyD3vH5YRpJUt4SrV/mzW/whlOEK/atCwnrEOdr0+zCg==} + /volar-service-typescript@0.0.34(@volar/language-service@2.1.2): + resolution: {integrity: sha512-NbAry0w8ZXFgGsflvMwmPDCzgJGx3C+eYxFEbldaumkpTAJiywECWiUbPIOfmEHgpOllUKSnhwtLlWFK4YnfQg==} peerDependencies: '@volar/language-service': ~2.1.0 peerDependenciesMeta: diff --git a/src/components/bloghero.astro b/src/components/bloghero.astro index a7af33d..96fe323 100644 --- a/src/components/bloghero.astro +++ b/src/components/bloghero.astro @@ -2,7 +2,7 @@ import { getEntry } from 'astro:content' import { Image } from 'astro:assets' import { Icon } from 'astro-icon/components' -import { Frontmatter } from '../config' +import type { Frontmatter } from '../config' import Categories from '../components/categories.astro' import Tags from '../components/tags.astro' diff --git a/src/components/carousel.astro b/src/components/carousel.astro index ec89aa9..9cfd2d6 100644 --- a/src/components/carousel.astro +++ b/src/components/carousel.astro @@ -59,7 +59,7 @@ const images = folderFiles.map((image) => imageFiles[image]) new Swiper('.mySwiper', { cssMode: true, - lazy: true, + // lazy: true, loop: true, spaceBetween: 30, centeredSlides: true, diff --git a/src/components/search.astro b/src/components/search.astro index a4eceda..178aee8 100644 --- a/src/components/search.astro +++ b/src/components/search.astro @@ -12,11 +12,11 @@ import { Icon } from 'astro-icon/components' doc: null, async lunr_search(term) { if (!this.doc) { - const res = await fetch(import.meta.env.BASE_URL + 'search-docs.json') + const res = await fetch('${import.meta.env.BASE_URL + 'search-docs.json'}') this.doc = await res.json() } if (!this.idx) { - const res = await fetch(import.meta.env.BASE_URL + 'search-index.json') + const res = await fetch('${import.meta.env.BASE_URL + 'search-index.json'}') const data = await res.json() this.idx = lunr.Index.load(data) } @@ -25,12 +25,9 @@ import { Icon } from 'astro-icon/components' if (term) { document.getElementById('lunrsearchtitle').innerHTML = "Search results for '" + term + "'" - //put results on the screen. const results = this.idx.search(term) if (results.length > 0) { - //if results for (var i = 0; i < results.length; i++) { - // more statements const url = results[i]['ref'] const doc = this.doc.filter(doc => doc.url == url)[0] document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = diff --git a/src/components/seo.astro b/src/components/seo.astro index 87fae85..7c5ac13 100644 --- a/src/components/seo.astro +++ b/src/components/seo.astro @@ -1,5 +1,6 @@ --- -import { SEO, TwitterCardType } from 'astro-seo' +import type { TwitterCardType } from 'astro-seo' +import { SEO } from 'astro-seo' import { getImage } from 'astro:assets' import { getCollection } from 'astro:content' import type { Frontmatter } from '../config' diff --git a/src/layouts/base.astro b/src/layouts/base.astro index 050e310..a4f8db1 100644 --- a/src/layouts/base.astro +++ b/src/layouts/base.astro @@ -1,5 +1,5 @@ --- -import { ViewTransitions } from 'astro:transitions' +// import { ViewTransitions } from 'astro:transitions' import type { Frontmatter } from '../config' import SEO from '../components/seo.astro' import Header from '../components/header.astro' diff --git a/src/pages/author/[author]/[...page].astro b/src/pages/author/[author]/[...page].astro index 093eef3..611abaf 100644 --- a/src/pages/author/[author]/[...page].astro +++ b/src/pages/author/[author]/[...page].astro @@ -3,7 +3,8 @@ import type { PaginateFunction, Page } from 'astro' import type { CollectionEntry } from 'astro:content' import { getEntry } from 'astro:content' import { Image } from 'astro:assets' -import { Frontmatter, SiteMetadata, PAGE_SIZE } from '../../../config' +import type { Frontmatter } from '../../../config' +import { SiteMetadata, PAGE_SIZE } from '../../../config' import { getCollection } from 'astro:content' import Base from '../../../layouts/base.astro' import PageHero from '../../../components/pagehero.astro' diff --git a/tsconfig.json b/tsconfig.json index 0715796..defc360 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,30 +1,10 @@ { - "$schema": "https://json.schemastore.org/tsconfig", + "extends": "astro/tsconfigs/strict", "compilerOptions": { - "strict": true, - // Enable top-level await, and other modern ESM features. - "target": "ESNext", - "module": "ESNext", - // Enable node-style module resolution, for things like npm package imports. - "moduleResolution": "node", - // Enable JSON imports. - "resolveJsonModule": true, - // Astro directly run TypeScript code, no transpilation needed. - "noEmit": true, - // Report an error when importing a file using a casing different from the casing on disk. - "forceConsistentCasingInFileNames": true, - // Properly support importing CJS modules in ESM - "esModuleInterop": true, - // Skip typechecking libraries and .d.ts files - "skipLibCheck": true, - // Add alias for assets folder for easy reference to assets - // "baseUrl": ".", "paths": { "photoswipe/lightbox": [ "./node_modules/photoswipe/dist/types/lightbox/lightbox.d.ts" ] - }, - // Allow JavaScript files to be imported - "allowJs": true + } } } \ No newline at end of file