vue-sfc-rollup
Advanced tools
Comparing version 4.0.0-beta.1 to 4.0.0
@@ -7,2 +7,39 @@ # Changelog | ||
## [4.0.0] - 2021-01-07 | ||
### Removed | ||
- Removed beta tag | ||
### Changed/Removed | ||
- **BREAKING CHANGE**: Drop support for node 10 | ||
- Update cli dependencies | ||
- prompts 2.4.0 | ||
- eslint 7.17.0 | ||
- eslint-config-airbnb-base 14.2.1 | ||
- eslint-plugin-import 2.22.1 | ||
- husky 4.3.7 | ||
- Update template dependencies | ||
- @babel/core 7.12.10 | ||
- @babel/preset-env 7.12.11 | ||
- @babel/preset-typescript 7.12.7 | ||
- @rollup/plugin-babel 5.2.2 | ||
- @rollup/plugin-commonjs 17.0.0 | ||
- @rollup/plugin-node-resolve 11.0.1 | ||
- @rollup/plugin-replace 2.3.4 | ||
- @vue/cli-plugin-babel 4.5.10 | ||
- @vue/cli-plugin-typescript 4.5.10 | ||
- @vue/cli-service 4.5.10 | ||
- @vue/compiler-sfc 3.0.5 (Vue 3) | ||
- cross-env 7.0.3 | ||
- **NEW** postcss 8.2.3 (Vue 3, peer of rollup-plugin-postcss 4.0.0) | ||
- rollup 2.36.1 | ||
- rollup-plugin-postcss 4.0.0 | ||
- rollup-plugin-vue 6.0.0 (Vue 3) | ||
- vue 3.0.5 (Vue 3) | ||
### Known Issues | ||
- Vue 3 tree-shaking is broken | ||
- This is due to a [known bug with @vue/compiler-sfc](https://github.com/vuejs/vue-next/issues/2860), used by rollup-plugin-vue | ||
- Vue 2 is not affected | ||
## [4.0.0-beta.1] - 2020-10-15 | ||
@@ -12,3 +49,3 @@ | ||
- Typescript type declarations don't conflict anymore (Vue 3) | ||
- Fixed treeshaking issues (Vue 2) | ||
- Fixed tree-shaking issues (Vue 2) | ||
- package.json includes `"sideEffects": false` | ||
@@ -27,3 +64,3 @@ - Marked appropriate functions as `/*#__PURE__*/` | ||
- @vue/cli-service 4.5.7 | ||
- @vue/compiler-sfc 3.0.0 | ||
- @vue/compiler-sfc 3.0.0 (Vue 3) | ||
- rollup 2.30.0 | ||
@@ -30,0 +67,0 @@ - rollup-plugin-postcss 3.1.8 |
@@ -6,3 +6,3 @@ { | ||
"license": "ISC", | ||
"version": "4.0.0-beta.1", | ||
"version": "4.0.0", | ||
"bin": { | ||
@@ -38,14 +38,14 @@ "sfc-init": "./sfc-init.js" | ||
"ejs": "^3.1.5", | ||
"prompts": "^2.3.2", | ||
"prompts": "^2.4.0", | ||
"update-check": "^1.5.4" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^7.7.0", | ||
"eslint-config-airbnb-base": "^14.2.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"husky": "^4.2.5" | ||
"eslint": "^7.17.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"husky": "^4.3.7" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=12" | ||
} | ||
} |
@@ -43,3 +43,3 @@ # vue-sfc-rollup | ||
- a sample SFC to kick-start development | ||
- a sample usage file which can be used to load/test your component/library during development | ||
- a sample usage file which can be used to load and test your component/library during development | ||
@@ -46,0 +46,0 @@ In library mode, there is also an 'index' which declares the components exposed as part of your library. |
@@ -35,29 +35,32 @@ { | ||
"devDependencies": { | ||
"@babel/core": "^7.12.0", | ||
"@babel/preset-env": "^7.12.0", | ||
"@babel/core": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
<% if (ts) { -%> | ||
"@babel/preset-typescript": "^7.12.0", | ||
"@babel/preset-typescript": "^7.12.7", | ||
<% } -%> | ||
"@rollup/plugin-alias": "^3.1.1", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@rollup/plugin-commonjs": "^14.0.0", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@rollup/plugin-replace": "^2.3.3", | ||
"@vue/cli-plugin-babel": "^4.5.7", | ||
"@rollup/plugin-babel": "^5.2.2", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"@vue/cli-plugin-babel": "^4.5.10", | ||
<% if (ts) { -%> | ||
"@vue/cli-plugin-typescript": "^4.5.7", | ||
"@vue/cli-plugin-typescript": "^4.5.10", | ||
<% } -%> | ||
"@vue/cli-service": "^4.5.7", | ||
"@vue/cli-service": "^4.5.10", | ||
<% if (version === 3) { -%> | ||
"@vue/compiler-sfc": "^3.0.0", | ||
"@vue/compiler-sfc": "^3.0.5", | ||
<% } -%> | ||
"cross-env": "^7.0.2", | ||
"cross-env": "^7.0.3", | ||
"minimist": "^1.2.5", | ||
"rollup": "^2.30.0", | ||
<% if (version === 3) { -%> | ||
"rollup-plugin-postcss": "^3.1.8", | ||
"postcss": "^8.2.3", | ||
<% } -%> | ||
"rollup": "^2.36.1", | ||
<% if (version === 3) { -%> | ||
"rollup-plugin-postcss": "^4.0.0", | ||
<% } -%> | ||
"rollup-plugin-terser": "^7.0.2", | ||
<% if (version === 3) { -%> | ||
"rollup-plugin-vue": "^6.0.0-beta.10", | ||
"rollup-plugin-vue": "^6.0.0", | ||
<% } else { -%> | ||
@@ -70,3 +73,3 @@ "rollup-plugin-vue": "^5.1.9", | ||
<% if (version === 3) { -%> | ||
"vue": "^3.0.0" | ||
"vue": "^3.0.5" | ||
<% } else { -%> | ||
@@ -79,3 +82,3 @@ "vue": "^2.6.12", | ||
<% if (version === 3) { -%> | ||
"vue": "^3.0.0" | ||
"vue": "^3.0.5" | ||
<% } else { -%> | ||
@@ -86,4 +89,4 @@ "vue": "^2.6.12" | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
} | ||
} |
@@ -12,2 +12,2 @@ <% if (version === 3) { -%> | ||
export const <%-componentNamePascal%>Sample: <% if (version === 3) { %>DefineComponent<% } else { %>VueConstructor<Vue><% } %>; | ||
export const <%-componentNamePascal%>Sample: <% if (version === 3) { %>DefineComponent<{}, {}, any><% } else { %>VueConstructor<Vue><% } %>; |
@@ -5,3 +5,3 @@ declare module '*.vue' { | ||
const Component: DefineComponent; | ||
const Component: DefineComponent<{}, {}, any>; | ||
export default Component; | ||
@@ -8,0 +8,0 @@ <% } else { -%> |
@@ -5,3 +5,3 @@ declare module '*.vue' { | ||
const Component: DefineComponent; | ||
const Component: DefineComponent<{}, {}, any>; | ||
export default Component; | ||
@@ -8,0 +8,0 @@ <% } else { -%> |
@@ -7,3 +7,3 @@ <% if (version === 3) { -%> | ||
declare const <%-componentNamePascal%>: <% if (version === 3) { %>DefineComponent & { install: Exclude<Plugin['install'], undefined> }<% } else { %>VueConstructor<Vue> & { install: PluginFunction<any>; }<% } %>; | ||
declare const <%-componentNamePascal%>: <% if (version === 3) { %>DefineComponent<{}, {}, any> & { install: Exclude<Plugin['install'], undefined> }<% } else { %>VueConstructor<Vue> & { install: PluginFunction<any>; }<% } %>; | ||
export default <%-componentNamePascal%>; |
@@ -35,29 +35,32 @@ { | ||
"devDependencies": { | ||
"@babel/core": "^7.12.0", | ||
"@babel/preset-env": "^7.12.0", | ||
"@babel/core": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
<% if (ts) { -%> | ||
"@babel/preset-typescript": "^7.12.0", | ||
"@babel/preset-typescript": "^7.12.7", | ||
<% } -%> | ||
"@rollup/plugin-alias": "^3.1.1", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@rollup/plugin-commonjs": "^14.0.0", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@rollup/plugin-replace": "^2.3.3", | ||
"@vue/cli-plugin-babel": "^4.5.7", | ||
"@rollup/plugin-babel": "^5.2.2", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"@vue/cli-plugin-babel": "^4.5.10", | ||
<% if (ts) { -%> | ||
"@vue/cli-plugin-typescript": "^4.5.7", | ||
"@vue/cli-plugin-typescript": "^4.5.10", | ||
<% } -%> | ||
"@vue/cli-service": "^4.5.7", | ||
"@vue/cli-service": "^4.5.10", | ||
<% if (version === 3) { -%> | ||
"@vue/compiler-sfc": "^3.0.0", | ||
"@vue/compiler-sfc": "^3.0.5", | ||
<% } -%> | ||
"cross-env": "^7.0.2", | ||
"cross-env": "^7.0.3", | ||
"minimist": "^1.2.5", | ||
"rollup": "^2.30.0", | ||
<% if (version === 3) { -%> | ||
"rollup-plugin-postcss": "^3.1.8", | ||
"postcss": "^8.2.3", | ||
<% } -%> | ||
"rollup": "^2.36.1", | ||
<% if (version === 3) { -%> | ||
"rollup-plugin-postcss": "^4.0.0", | ||
<% } -%> | ||
"rollup-plugin-terser": "^7.0.2", | ||
<% if (version === 3) { -%> | ||
"rollup-plugin-vue": "^6.0.0-beta.10", | ||
"rollup-plugin-vue": "^6.0.0", | ||
<% } else { -%> | ||
@@ -70,3 +73,3 @@ "rollup-plugin-vue": "^5.1.9", | ||
<% if (version === 3) { -%> | ||
"vue": "^3.0.0" | ||
"vue": "^3.0.5" | ||
<% } else { -%> | ||
@@ -79,3 +82,3 @@ "vue": "^2.6.12", | ||
<% if (version === 3) { -%> | ||
"vue": "^3.0.0" | ||
"vue": "^3.0.5" | ||
<% } else { -%> | ||
@@ -86,4 +89,4 @@ "vue": "^2.6.12" | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
} | ||
} |
@@ -13,3 +13,3 @@ <% if (ts && version === 3) { -%> | ||
<% if (version === 3) { -%> | ||
type InstallableComponent = DefineComponent & { install: Exclude<Plugin['install'], undefined> }; | ||
type InstallableComponent = DefineComponent<{}, {}, any> & { install: Exclude<Plugin['install'], undefined> }; | ||
<% } else { -%> | ||
@@ -16,0 +16,0 @@ type InstallableComponent = VueConstructor<_Vue> & PluginObject<any>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
57842
0
1
Updatedprompts@^2.4.0