From b4a4a393ccfa61e998fbd0ee6df93a886cf61a52 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 26 Apr 2023 10:49:54 +0800 Subject: [PATCH 1/4] chore: changelog --- CHANGELOG.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f00faee9f..ff0cbe416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +# [17.1.0](https://github.com/vuejs/vue-loader/compare/v17.1.0-beta.0...v17.1.0) (2023-04-26) + + +### Bug Fixes + +* do not throw when `Rule.layer` ([#2000](https://github.com/vuejs/vue-loader/issues/2000)) ([ef589df](https://github.com/vuejs/vue-loader/commit/ef589df2956506a5a7bbc050c476501d32dd8469)) + + + +# [17.1.0-beta.0](https://github.com/vuejs/vue-loader/compare/v17.0.1...v17.1.0-beta.0) (2023-04-19) + + +### Bug Fixes + +* reference project compiler, fixes [#2031](https://github.com/vuejs/vue-loader/issues/2031) ([#2038](https://github.com/vuejs/vue-loader/issues/2038)) ([cc6fa9e](https://github.com/vuejs/vue-loader/commit/cc6fa9ebf85972a08fc8bbc359b0093b15790745)) + + +### Features + +* support 3.3 imported types hmr ([bbd98fc](https://github.com/vuejs/vue-loader/commit/bbd98fc8bdc17fcbffb456a5ffe772bc184f22e4)) + + + # [17.1.0-beta.0](https://github.com/vuejs/vue-loader/compare/v17.0.1...v17.1.0-beta.0) (2023-04-19) From 9fb570c4637ed758e57041e4734a8ceefd71a3c9 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 11 May 2023 11:25:25 +0100 Subject: [PATCH 2/4] chore: bump vue --- package.json | 2 +- yarn.lock | 138 +++++++++++++++++++++++++-------------------------- 2 files changed, 70 insertions(+), 70 deletions(-) diff --git a/package.json b/package.json index fa13136b7..076de066e 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "ts-loader-v9": "npm:ts-loader@^9.2.4", "typescript": "^4.4.3", "url-loader": "^4.1.0", - "vue": "^3.3.0-alpha.12", + "vue": "^3.3.0", "vue-i18n": "^9.1.7", "webpack": "^5.79.0", "webpack-cli": "^3.3.12", diff --git a/yarn.lock b/yarn.lock index 34c979246..dbf3ba5ac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1502,100 +1502,100 @@ dependencies: "@types/yargs-parser" "*" -"@vue/compiler-core@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.3.0-alpha.12.tgz#baa00b99ab54c0bcf9d0b06b3efbce39434f6016" - integrity sha512-jAcjlvNR5e+rZ8nzJ8S3t6vpINctQhnLEjqeubvPRPgIRxnzAl6NzWgOCfqz81WO8tRoyYXyN5YF5lEyj+Ku2Q== +"@vue/compiler-core@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.3.1.tgz#4e60a13a4dc65dd1f70e19d30f3746d4f9367af2" + integrity sha512-5le1qYSBgLWg2jdLrbydlhnPJkkzMw46UrRUvTnOKlfg6pThtm9ohhqBhNPHbr0RcM1MCbK5WZe/3Ghz0SZjpQ== dependencies: "@babel/parser" "^7.21.3" - "@vue/shared" "3.3.0-alpha.12" + "@vue/shared" "3.3.1" estree-walker "^2.0.2" source-map-js "^1.0.2" -"@vue/compiler-dom@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.3.0-alpha.12.tgz#aa4c7ac31b17f7b2b7d6873c1e047433bf6546f6" - integrity sha512-jti83D32xoyAIkvPwf3V1c/r4K498OZpJxEJCUYizsr9WAN1vI1Mm85JKTFF/phH7CDu7wqxALx/uti6SsnEtA== +"@vue/compiler-dom@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.3.1.tgz#2d94431071377ace74c770aafb6ab2d62205b336" + integrity sha512-VmgIsoLivCft3+oNc5KM7b9wd0nZxP/g2qilMwi1hJyGA624KWnNKHn4hzBQs4FpzydUVpNy+TWVT8KiRCh3MQ== dependencies: - "@vue/compiler-core" "3.3.0-alpha.12" - "@vue/shared" "3.3.0-alpha.12" + "@vue/compiler-core" "3.3.1" + "@vue/shared" "3.3.1" -"@vue/compiler-sfc@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.3.0-alpha.12.tgz#c2bb246c47e76e0c94b75baf73ca9be347d5035c" - integrity sha512-JevlKXtRuvwl5iTgCyCxOVD9Bge9Ck4pnOY03V1Vikx+Smtf/QIqJI/XMK2aFxgoPXUBj3/ueqy9kz6yW2CgNQ== +"@vue/compiler-sfc@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.3.1.tgz#16a614fe9c85f35ca0e4333793441edb126323fc" + integrity sha512-G+FPwBbXSLaA4+Ry5/bdD9Oda+sRslQcE9o6JSZaougRiT4OjVL0vtkbQHPrGRTULZV28OcrAjRfSZOSB0OTXQ== dependencies: "@babel/parser" "^7.20.15" - "@vue/compiler-core" "3.3.0-alpha.12" - "@vue/compiler-dom" "3.3.0-alpha.12" - "@vue/compiler-ssr" "3.3.0-alpha.12" - "@vue/reactivity-transform" "3.3.0-alpha.12" - "@vue/shared" "3.3.0-alpha.12" + "@vue/compiler-core" "3.3.1" + "@vue/compiler-dom" "3.3.1" + "@vue/compiler-ssr" "3.3.1" + "@vue/reactivity-transform" "3.3.1" + "@vue/shared" "3.3.1" estree-walker "^2.0.2" magic-string "^0.30.0" postcss "^8.1.10" source-map-js "^1.0.2" -"@vue/compiler-ssr@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.3.0-alpha.12.tgz#4dc3ef9c21708576cd473f7170f74ccc0a915263" - integrity sha512-PlitVo8v+rzQ9SxTqY+88N0kOEWbgsRj5oGrgxcACEJxt5oLvKm6eIJuFtwm4im/QtUk3SqMLTKRqTZ+CVywbg== +"@vue/compiler-ssr@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.3.1.tgz#4572a5ff79fefd1ba68cb57f024763f5d004f7b3" + integrity sha512-QOQWGNCWuSeyKx4KvWSJlnIMGg+/2oCHgkFUYo7aJ+9Uaaz45yRgKQ+FNigy50NYBQIhpXn2e4OSR8GXh4knrQ== dependencies: - "@vue/compiler-dom" "3.3.0-alpha.12" - "@vue/shared" "3.3.0-alpha.12" + "@vue/compiler-dom" "3.3.1" + "@vue/shared" "3.3.1" "@vue/devtools-api@^6.0.0-beta.7": version "6.0.0-beta.17" resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.17.tgz#d4b9eb02c670d39a4532f4bb3c8517abce3fcb82" integrity sha512-hwGY4Xxc2nl34OyNH7l2VO8/ja3R78B8bcbaBQnZljSju5Z0Bm9HTt+/fQao+TUrs3gfNrrQrY3euWqiaG8chw== -"@vue/reactivity-transform@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.3.0-alpha.12.tgz#3c05edcf7c12a37201bf7c0bae5ba2a0a69b372c" - integrity sha512-t+vK8WOK8NXLpl6YBOpGh3sTx54j6G2NQsWjFFEv4BEMYtrPYTZswFRfT6eth8eY4X5jI5np/vHGUMCaUnf3BA== +"@vue/reactivity-transform@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.3.1.tgz#35000e3bd4d481b228e5f0b97eb652ec9e6894dc" + integrity sha512-MkOrJauAGH4MNdxGW/PmrDegMyOGX0wGIdKUZJRBXOTpotDONg7/TPJe2QeGeBCow/5v9iOqZOWCfvmOWIaDMg== dependencies: "@babel/parser" "^7.20.15" - "@vue/compiler-core" "3.3.0-alpha.12" - "@vue/shared" "3.3.0-alpha.12" + "@vue/compiler-core" "3.3.1" + "@vue/shared" "3.3.1" estree-walker "^2.0.2" magic-string "^0.30.0" -"@vue/reactivity@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.3.0-alpha.12.tgz#d074c5b30bf8dba406042e28f2682ff08b67b3fc" - integrity sha512-/MpZzF0A/ocPocOFPE5Rs80mSUFRdj8xUZdmKcgq+HABmDs+XCW50lSgBxejLVYmm7S09lnVfs/Mvp/jzV9Oiw== +"@vue/reactivity@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.3.1.tgz#b134186493113f9f8c3fb6d65a047e19825a46e1" + integrity sha512-zCfmazOtyUdC1NS/EPiSYJ4RqojqmTAviJyBbyVvY8zAv5NhK44Yfw0E1tt+m5vz0ZO1ptI9jDKBr3MWIEkpgw== dependencies: - "@vue/shared" "3.3.0-alpha.12" + "@vue/shared" "3.3.1" -"@vue/runtime-core@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.3.0-alpha.12.tgz#d0cb5c8279ca41e22b28f5ced738c3cd52dedb43" - integrity sha512-LQMIo9ZqG21l1B8JOGjlBP+z/ePGRl+Zu6NItgBl+FbPJHB7LEG5XSb+gmApamQKXRSynzoGeRY584dQ8PglIA== +"@vue/runtime-core@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.3.1.tgz#ed244dcb48d4e1e2079bf7d698a218e5b8ef5f62" + integrity sha512-Ljb37LYafhQqKIasc0r32Cva8gIh6VeSMjlwO6V03tCjHd18gmjP0F4UD+8/a59sGTysAgA8Rb9lIC2DVxRz2Q== dependencies: - "@vue/reactivity" "3.3.0-alpha.12" - "@vue/shared" "3.3.0-alpha.12" + "@vue/reactivity" "3.3.1" + "@vue/shared" "3.3.1" -"@vue/runtime-dom@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.3.0-alpha.12.tgz#7871c21e916bafdf3202e29c3fcecfdeba3bc4f9" - integrity sha512-4Q3HcFc3Y6eX36s9WN5zL519k0fsuSmLKuNhLPABgThxcirnlGMr3AN9Ru0D40UoKBN3AEwNuMLp89tl+xMwvA== +"@vue/runtime-dom@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.3.1.tgz#c07aef5b72385a2f22fdc82a203db6eba7f39fb4" + integrity sha512-NBjYbQPtMklb7lsJsM2Juv5Ygry6mvZP7PdH1GZqrzfLkvlplQT3qCtQMd/sib6yiy8t9m/Y4hVU7X9nzb9Oeg== dependencies: - "@vue/runtime-core" "3.3.0-alpha.12" - "@vue/shared" "3.3.0-alpha.12" + "@vue/runtime-core" "3.3.1" + "@vue/shared" "3.3.1" csstype "^3.1.1" -"@vue/server-renderer@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.3.0-alpha.12.tgz#b0cba2dbbf004b511be17af2dda483b4ec4b712c" - integrity sha512-jE9lDdXTQtedzHcyaccgWMYvEbiBcwF/r77zp95HmoYbprxw4QhcVZ+x49AtlDY5ndtJ0JRL4bDiKERz+uvxyg== +"@vue/server-renderer@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.3.1.tgz#c750a775ca4abd8213748a540cce7344af00dac4" + integrity sha512-sod8ggOwbkQXw3lBjfzrbdxRS9lw/lNHoMaXghHawNYowf+4WoaLWD5ouz6fPZadUqNKAsqK95p8DYb1vcVfPA== dependencies: - "@vue/compiler-ssr" "3.3.0-alpha.12" - "@vue/shared" "3.3.0-alpha.12" + "@vue/compiler-ssr" "3.3.1" + "@vue/shared" "3.3.1" -"@vue/shared@3.3.0-alpha.12": - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.3.0-alpha.12.tgz#4af4819fa5da6c88fb0c45e54dc2e480d9ed60c8" - integrity sha512-5Kw7f53F+Vxl8F61fsrTg056mhhHchDmSK8fRdHlfuEuNz2EICi8ehaD+0A3PMo+Zd/S9OBhkOyG4oI6g+O9PA== +"@vue/shared@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.3.1.tgz#875a1c1847ec0646fc3dbe5581cb46b49ca3c469" + integrity sha512-ybDBtQ+479HL/bkeIOIAwgpeAEACzztkvulJLbK3JMFuTOv4qDivmV3AIsR8RHYJ+RD9tQxcHWBsX4GqEcYrfw== "@webassemblyjs/ast@1.11.1": version "1.11.1" @@ -9838,16 +9838,16 @@ vue-i18n@^9.1.7: "@intlify/vue-devtools" "9.1.7" "@vue/devtools-api" "^6.0.0-beta.7" -vue@^3.3.0-alpha.12: - version "3.3.0-alpha.12" - resolved "https://registry.yarnpkg.com/vue/-/vue-3.3.0-alpha.12.tgz#8a9ee1d4fe315f7f80521fc76bd4de1b470b838a" - integrity sha512-+NPimtt2nJ37/m49+9Ie/0gndIZ3PGXTfC0ITBZPKxsq1yphnM4bgD66OCdO98ci5W2lC9FfBRcEaCA5HFxekA== - dependencies: - "@vue/compiler-dom" "3.3.0-alpha.12" - "@vue/compiler-sfc" "3.3.0-alpha.12" - "@vue/runtime-dom" "3.3.0-alpha.12" - "@vue/server-renderer" "3.3.0-alpha.12" - "@vue/shared" "3.3.0-alpha.12" +vue@^3.3.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/vue/-/vue-3.3.1.tgz#267372cecd953900412bb00108bb56a591f57d33" + integrity sha512-3Rwy4I5idbPVSDZu6I+fFh6tdDSZbauImCTqLxE7y0LpHtiDvPeY01OI7RkFPbva1nk4hoO0sv/NzosH2h60sg== + dependencies: + "@vue/compiler-dom" "3.3.1" + "@vue/compiler-sfc" "3.3.1" + "@vue/runtime-dom" "3.3.1" + "@vue/server-renderer" "3.3.1" + "@vue/shared" "3.3.1" w3c-hr-time@^1.0.2: version "1.0.2" From 6269698f9fda37f0e3849db3e8b8e67ad1862f57 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 11 May 2023 11:25:37 +0100 Subject: [PATCH 3/4] fix: support propsDestructure and defineModel options --- src/index.ts | 14 ++++++++++++++ src/resolveScript.ts | 2 ++ 2 files changed, 16 insertions(+) diff --git a/src/index.ts b/src/index.ts index ec6f7dc59..dabc5c000 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,7 +30,21 @@ export interface VueLoaderOptions { transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls'] compiler?: TemplateCompiler | string compilerOptions?: CompilerOptions + /** + * TODO remove in 3.4 + * @deprecated + */ reactivityTransform?: boolean + + /** + * @experimental + */ + propsDestructure?: boolean + /** + * @experimental + */ + defineModel?: boolean + customElement?: boolean | RegExp hotReload?: boolean diff --git a/src/resolveScript.ts b/src/resolveScript.ts index 760683bba..ee954ee07 100644 --- a/src/resolveScript.ts +++ b/src/resolveScript.ts @@ -62,6 +62,8 @@ export function resolveScript( isProd, inlineTemplate: enableInline, reactivityTransform: options.reactivityTransform, + propsDestructure: options.propsDestructure, + defineModel: options.defineModel, babelParserPlugins: options.babelParserPlugins, templateOptions: { ssr: isServer, From fdee426f9985756f9fd28b7cf726f84945fd0f0b Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 11 May 2023 11:27:22 +0100 Subject: [PATCH 4/4] v17.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 076de066e..2f5134289 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-loader", - "version": "17.1.0", + "version": "17.1.1", "license": "MIT", "author": "Evan You", "repository": "vuejs/vue-loader", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy