@nuxt/babel-preset-app
2.18.1 · 28 Jun 2024MIT167.2k / weekRepositoryHomepagenpmAtom feed
67 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
2.18.1
28 Jun 2024webpack: Depend on earlier version of
mkdirp
2.18.0
27 Jun 2024- Security
Add non-applicable advisory GHSA-3h5v-q93c-6h6q
2.17.4
14 Jun 2024- Security
Mark github.com/advisories/GHSA-2p57-rm9w-gvfp as not applicable
- Security
Mark GHSA-grv7-fg5c-xmjg as not applicable
types: Bump
serve-statictypes to v1.15.7
Changelog
Fixes
types: Bump
serve-statictypes to v1.15.7generator: Use maintained
html-minifier-terservue-app: Prevent double page mount
core: Don't skip loading runtime modules if one is improperly resolved
vue-app: Prevent error page mounting twice
Chore
- Security
Mark github.com/advisories/GHSA-2p57-rm9w-gvfp as not applicable
- Security
Mark GHSA-grv7-fg5c-xmjg as not applicable
2.17.3
12 Jan 20242.17.2
24 Oct 2023types: Prevent overwriting vue types in template
types: Don't pin webpack types to exact version
Remove md4 patch now that
webpackhas it in core
Changelog
Fixes
types: Prevent overwriting vue types in template
types: Don't pin webpack types to exact version
Remove md4 patch now that
webpackhas it in core
2.17.1
14 Jul 2023webpack: Downgrade dev-middleware to fix peer dep issue
webpack: Pin webpack-dev-middleware to 5.0.0
2.17.1 is the next patch release for Nuxt 2.
Changelog
Fixes
webpack: Downgrade dev-middleware to fix peer dep issue
webpack: Pin webpack-dev-middleware to 5.0.0
2.17.0
9 Jun 2023- Security
Exclude yaml exception vulnerability (build-time dep)
types: Support nuxt types for defineComponent
csp: Support generating nonce for scripts and links in ssr
2.17.0 is the next minor release for Nuxt 2.
Highlights
Nuxt 2.17 comes with a few new features, including better support for new Vue 2.7 types, and supporting passing postcss config as a function.
It also includes support for Node 20+ and a fix for a dependency issue with the Babel preset that affected new installs.
Changelog
Enhancements
types: Support nuxt types for defineComponent
csp: Support generating nonce for scripts and links in ssr
webpack: Support passing function as postcssOptions
Performance
config: Avoid recursive md4 patching
Fixes
Relax node engines upper constraint
utils: Respect patterns within paths when sorting routes
vue-app: Skip page render early on error or navigation
babel-preset-app: Add explicit dep on used babel plugin
Chore
- Security
Exclude yaml exception vulnerability (build-time dep)
2.16.3
17 Mar 2023types: Add return type for
error()types: Bring types from
lessinto namespacetypes: Sync vue type augmentations with Vue 2.7
2.16.3 is a patch release with bug fixes.
Changelog
Fixes
types: Add return type for
error()types: Bring types from
lessinto namespacetypes: Sync vue type augmentations with Vue 2.7
config: Move
presetto innerpostcssOptionswebpack: Add
node-fetch-nativeto externals list
2.16.2
1 Mar 2023- Removed
types: Remove non-existent properties from context
types: Add basic types for Nuxt interface
vue-renderer: Insert
charsetbeforetitle
2.16.2 is a patch release with bug fixes.
Highlights
The main change in this patch release is that we now patch the
cryptonode built-in during build to allow Nuxt 2 to be used on Node versions greater than Node 16, which should ease the pressure users feel after Node 16 reaches its own EOL this year.Warning
This should not be taken for an endorsement of continuing to run with Webpack 4, which is out of date and has a number of dependencies with issues. I expect that number to continue to grow, and we will not be able to resolve all of them. I would strongly urge migrating to Nuxt 3 if possible and the team will do our best to make this possible over the course of the year ❤️Changelog
Enhancements
types: Add basic types for Nuxt interface
Fixes
vue-renderer: Insert
charsetbeforetitle- Removed
types: Remove non-existent properties from context
Add minimum node 14.18 version constraint
config: Upgrade md4 -> md5 on node > 16
vue-app: Handle promise rejection from
asyncData
2.16.1
13 Feb 2023deps: Downgrade
@typespackages depending on webpack 5config: Let webpack merge postcss plugins
types: Import
Locationfromvue-router
Nuxt 2.16.1 is a patch release with a couple of small bugfixes to last week's 2.16.0 release.
Fixes
deps: Downgrade
@typespackages depending on webpack 5config: Let webpack merge postcss plugins
types: Import
Locationfromvue-router
2.16.0
3 Feb 2023- Breaking
In this PR we only support Node 14+. This is mostly an issue for dependencies, which we need to keep updated for security reasons. Going forward until its own EOL, Nuxt 2 will only officially support Node versions that have not reached their EOL.
- Breaking
New postcss options format. See #9671 for full details.
- Breaking
Dependency upgrades. A number of dependencies have dropped support for earlier node versions.
dotenvhas changed how it parses.envfiles in a number of edge cases.globnow requires/instead of\on windows machines. There may also be other changes that affect your usage, so please do upgrade with care.
Nuxt 2.16.0 is the first minor release since Feb 15, 2021. The focus is mostly on releasing the latest fixes and enhancements that have been present in
nuxt-edgefor some time.Highlights
Upgrade to PostCSS 8
Default to
core-jsv3... full details below
Breaking changes
- Breaking
In this PR we only support Node 14+. This is mostly an issue for dependencies, which we need to keep updated for security reasons. Going forward until its own EOL, Nuxt 2 will only officially support Node versions that have not reached their EOL.
- Breaking
New postcss options format. See #9671 for full details.
- Breaking
Dependency upgrades. A number of dependencies have dropped support for earlier node versions.
dotenvhas changed how it parses.envfiles in a number of edge cases.globnow requires/instead of\on windows machines. There may also be other changes that affect your usage, so please do upgrade with care. - Breaking
Vue 2.7 upgrade. Although you can use Vue 2.7 with any release of Nuxt 2, 2.16.0 for the first time includes it as a dependency, which means that you may well encounter some issues associated with upgrading Vue 2.6 -> Vue 2.7.
This may be a good time to consider using the composition API utilities provided by github.com/nuxt/bridge instead, which mirror Nuxt 3's more precisely than
@nuxtjs/composition-api. (You can opt-in to just these utilities by disabling the other bridge modules individually.)
Changelog
Enhancements
config: Support
nuxtrcin dist directorygenerator: Add ignoreEnv generate option during ensureBuild(cmd)
server: Allow disabling
serve-staticmiddlewaretypes: Add
asyncDatareturn types to component instance typevue-app:
context.beforeSerializemethodvue-app: Pass
storetocreateRouterDefault to
core-jsversion 3webpack: ⚠️ Update postcss to v8
Fixes
vue-app: Respect
scroll-margin-topwhen navigating with hashwebpack: Use
javascript/autofor js ruleserver: Unregister error event listener
babel-preset-app: Respect explicit options.targets for modern preset
types: Add nuxt.config alias type
vue-app: Check whether route exists within nuxt app before replacing
vue-renderer: Decode route path for
payload.jsvue-app: Don't normalise route path if it's valid
vue-app: Redirect to external url replaces current history entry
utils:
trailingSlashcauses error with dynamic nuxt-child routestypes: Add
onNuxtLoadedandonNuxtReadytypesvue-app: Re-register components construtor in HMR
types: Add typing for
build.statsoptionsbabel: Loose option for babel private-property-in-object
vue-app: Serialize route meta to allow functions
vue-app:
nullcheck for$rootaccessgenerator: Allow passing
buildertogetGeneratorgenerator: Throw an error when Builder is missing
vue-app: Use correct
$configfor finding basePathvue-renderer: Ensure custom build indicator preserves some whitespace
'npm run test' fails because the last command lacks 'yarn'
generator: Decode path with
ufocli: Ensure nuxt instance is closed when skipping build
Nuxt-child-key in web-types.json
types: Return type of $fetch
deps: Update
ya-parser-jsto latest0.7.xvue-app: Call ssrContext.unsetMutationObserver only if it exists
webpack: Allow files with
.cjsextension to be transpiledvue-app: Preview mode fetch
webpack: Resolve
.wasmextension with lower priorityvue-app: Clear hide timeout when calling
clear()
Types
Add
prefetchPayloadsto router options
CI
Breaking Changes
- Breaking
webpack: ⚠️ Update postcss to v8
2.15.8
11 Aug 2021vue-app: Don't normalise route path if it's valid
babel: Loose option for
babel private-property-in-object
2.15.7
14 Jun 2021vue-app: Check whether a route exists within the nuxt app before replacing
Security advisory
Please upgrade to
nuxt@^2.15.7if usingnuxt@2.15.5ornuxt@2.15.6Bug Fixes
vue-app: Check whether a route exists within the nuxt app before replacing
2.15.5
9 May 20212.15.4
1 Apr 2021vue-app: Reload page once after loading chunk error (resolves #3389)
vue-app: Fallback to global nuxt instance of
$rootis not available (resolves #8995)vue-app: Use
app.context.routeto match components in server (resolves #9009)
Bug Fixes
vue-app: Reload page once after loading chunk error (resolves #3389)
vue-app: Fallback to global nuxt instance of
$rootis not available (resolves #8995)vue-app: Use
app.context.routeto match components in server (resolves #9009)vue-app: Serialize redirect functions in routes (resolves #8979)
vue-app: Re-call
$fetchif data is missing in payload (resolves #9016)vue-app: Use
app.context.routefor resolving components (resolves #9049)vue-app: Move internal app runtime config to
_appnamespace (resolves #9074)config: Set
compileTypetoicssforcss-loaderv4server: Avoid caching
.jsassets in development to fix HMR in safari (resolves #3828)cli: Remove warning if postcss 8 is installed (resolves #8087)
Types
Inline
@types/terser-webpack-pluginUse options from
sass-loaderrather thansass(resolves #9085)Css-loader v4 type definitions
Don't require all csp policies as keys (resolves #9017)
Add stub entrypoint to allow node resolution of
@nuxt/types(resolves #9030)
2.15.3
10 Mar 2021types: Export interface for
NuxtConfiginstead of typewebpack: Update hmr option for
extract-css-chunks-webpack-plugingeneral: Allow force overriding resolve paths
Bug Fixes
types: Export interface for
NuxtConfiginstead of typewebpack: Update hmr option for
extract-css-chunks-webpack-plugingeneral: Allow force overriding resolve paths
general: Allow relative public paths
vue-renderer: Respect
injectScriptsforstatictarget
2.15.2
23 Feb 2021babel-preset-app: Pin @babel/preset-env to ~7.12
babel-preset-app: Avoid relying on preset-env internal utils
2.15.1
19 Feb 2021types:
build.html.minifycan be false
2.15.0
15 Feb 2021- Breaking
Minimum supported Node.js version is 12.0.0 (See #8327 for why)
- Breaking
general: Update all dependencies that require node 10.x
Using jiti as new require engine with typescript support
Highlights
⚠️This release introduces behavior changes. Update with caution ⚠️
- Breaking
Minimum supported Node.js version is 12.0.0 (See #8327 for why)
Using jiti as new require engine with typescript support
Plug and play works out of the box
Allow opting-in to use
postcss@8(See #8546)NOTE: postcss-preset-env is disabled in v8 config as it doesn't support postcss v8 for now, so please install all below dependencies explicitly.
yarn add --dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1 # or npm i --save-dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
Several encoding issues resolved by consistently using ufo
Components updated to v2 (please read migration guide)
When matching a webpack loader by name or query, should use
includesinstead of exact match (example)
Bug Fixes
general: Ignore trailing slash in static payloads manifest
general: Encoding issues with payload paths
general:
trailingSlashand child routes not workingvue-app: Enable dynamic
publicPathon server-sidevue-app: Static payload fetching bugfixes
vue-app: Check for
Page.optionsbefore looking withinvue-app: Don't remove
req,resandqueryfrom context unless in full static modevue-app: Ensure
link.__prefetchexists before calling itvue-app: Add missing
idattribute tonoopAppvue-app: Scroll-to-top on route changes only
vue-app: Set
pushon router instance rather than prototypevue-app: Do not preserve state when registering client-side dynamic module
vue-app: Add leading slash for payload hydration
Features
general: Support plug-and-play, typescript runtime and native modules
- Breaking
general: Update all dependencies that require node 10.x
🇹 Types
Add missing ssr option to config types
vue.configtypes should be optionalAdd missing
redirectoverload toContextinterfaceAdd
enablePreviewto contextAdd missing
loadingScreentype definition
2.14.9
2 Dec 2020Only encode non dynamic path params
2.14.7
15 Oct 2020babel-preset-app: Always transpile optional chaining and nullish-coalescing for server
cli: Rebuild if
process.envchanges innuxt.configcli: Avoid error about
nuxt-edgeif installed in parentnode_modules
Bug Fixes
babel-preset-app: Always transpile optional chaining and nullish-coalescing for server
cli: Rebuild if
process.envchanges innuxt.configcli: Avoid error about
nuxt-edgeif installed in parentnode_modulescli: Mode deprecation with explicit spa or universal flag
types: Add type for
serverMiddlewareobject formattypes: Make
NuxtConfigan interfacegeneral: Add better logs for DX with target option
2.14.4
27 Aug 2020Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
2.14.3
16 Aug 2020vue-renderer: Apply
nomoduleto legacy chunks
2.14.2
16 Aug 2020general: Improve definitions for component transition property
2.14.0
27 Jul 2020Auto detecting
core-jsversion for projectOfficial support for Nuxt.js with webstorm 2020.2
Highlights
Auto detecting
core-jsversion for projectOfficial support for Nuxt.js with webstorm 2020.2
New Guides section in documentation
Features
general: Static target improvements
Types
general: Fix module options type
general: Add cross-origin property to
NuxtOptionsRendergeneral: Fix module options type
2.13.3
2 Jul 2020general: Import types for
@nuxt/telemetryand@nuxt/components
Types
general: Import types for
@nuxt/telemetryand@nuxt/components
2.13.2
26 Jun 20202.13.1
24 Jun 2020vue-app: Always import
resolveRouteComponents(#7587, nuxt/content#123)vue-app: 6332a Check correct layout when navigating from error
Fix module and typescript compatibility (nuxt-community/sentry-module#195)
Bug Fixes
vue-app: Always import
resolveRouteComponents(#7587, nuxt/content#123)vue-app: 6332a Check correct layout when navigating from error
Types
Fix module and typescript compatibility (nuxt-community/sentry-module#195)
Add missing crawler config
2.13.0
18 Jun 2020New
target: staticand full static usingnuxt exportBuilt-in
.envsupport andruntimeConfigAuto components discovery with nuxt/components
What's new?
New
target: staticand full static usingnuxt exportBuilt-in
.envsupport andruntimeConfigAuto components discovery with nuxt/components
Nuxt Telemetry
Also don't miss nuxt/content and nuxt-composition-api ;)
Features
general:
createRequireoption and disable esm for jestgeneral: Improve production debugging DX
general: Experimental nuxt telemetry
general: Builtin Components
general: Runtime config and built-in dotenv support (#7312, #7420, #7421)
general: Full static target (#6159, #7332, #7334, #7336, #7350, #7399, #7400, #7401, #7431, #7486, #7523, #7518)
modern: Remove inlined safari fix in csp mode
babel-preset-app: Add
bugfixesoption
Bug Fixes
core: Improve module not found error
Join with os native sep in resolver
general: Use different port for loading-screen SSE
general: #7377, #7378 Set build indicator icon height for ie11
generator, builder: Empty build and dist directories instead of remove
Types
generalMove
@nuxt/typesto nuxt mono-repo
2.12.2
31 Mar 2020server: HMR for sub-app
serverMiddlewarewithout pathvue-app: Sanitize layouts after resolve for
splitChunks.layoutcore: Join with os native sep in the resolver
2.12.1
25 Mar 20202.12.0
17 Mar 2020- Deprecated
core: Deprecated
render:contextandrender:routeContexthooks was not being called general: Support
crossoriginattribute in SSR script andpreloadtagsgeneral: Improve programmatic usage (see docs)
Features
general: Support
crossoriginattribute in SSR script andpreloadtagsgeneral: Improve programmatic usage (see docs)
general: Expose webpack config
general: Allow disabling loading-screen
DX
Bug Fixes
- Deprecated
core: Deprecated
render:contextandrender:routeContexthooks was not being called babel-preset-app: TypeError when import cjs in webpack building
2.11.0
17 Dec 2019general:
context.routeissue in plugins andsplitChunks.pages === falsegeneral: Collapsed SSR log
general: Optionally strip non-client or non-server code
Bug Fixes
general:
context.routeissue in plugins andsplitChunks.pages === falsegeneral: Collapsed SSR log
Features
general: Optionally strip non-client or non-server code
2.10.2
21 Oct 20192.10.1
11 Oct 2019- Removed
readme: Remove deprecated starter template
vue-app, webpack: Remove consola from client
generator: Remove trailing slash when no subFolders are used
Fixes
vue-app, webpack: Remove consola from client
generator: Remove trailing slash when no subFolders are used
Chore
- Removed
readme: Remove deprecated starter template
Dependency Upgrades
vue-meta: Upgraded tov2.3which fixes duplicated tags in SPA mode
2.10.0
2 Oct 2019Support for improved typescript runtime
Experimental support for feature toggling for SUPER slim builds!
Mitigate problems with nuxt server stocking during development
Highlights
Support for improved typescript runtime
Experimental support for feature toggling for SUPER slim builds!
Mitigate problems with nuxt server stocking during development
Fix issues with internet-explorer in development mode
Upgrade to terser webpack plugin v2
Improved stability of
loading-screen. No more endless loops (nuxt/loading-screen#44) and show fatal errors (nuxt/loading-screen#45) for the initial build
Bug Fixes
core: Clear resolver cache for project files dev mode
babel-preset-app: Use loose mode for babel class plugin
Features
general: Support setting (non-essential)
vue-metaoptions by user
2.9.2
28 Aug 2019general: Improve watching experience for generated files
Bug Fixes
general: Improve watching experience for generated files
2.9.1
20 Aug 20192.9.0
20 Aug 2019- Breaking
👉 Minimum required node version is
8.9.0 - Deprecated
👉
scrollBehavioroption is deprecated in favor ofapp/router.scrollBehavior.js - Deprecated
👉
devModulesoption is deprecated in favor ofbuildModules
Important Notes
- Breaking
👉 Minimum required node version is
8.9.0 👉 Typescript support is now externalized. Refer to official docs and migration guide.
👉
vue-metaupgraded to 2.0.0. Please refer to the changelog to review notable changes.- Deprecated
👉
scrollBehavioroption is deprecated in favor ofapp/router.scrollBehavior.js - Deprecated
👉
devModulesoption is deprecated in favor ofbuildModules
Bug Fixes
general: Fix
modulepreloadwarningsgeneral: Throw error when building failed in quiet mode
general: Support babel corejs config for modern mode
general: Babel polyfill can not be disabled
Features
vue-app: Add
$nuxt.refreshvue-app: Use EventSource instead of WebSocket for build indicator
- Deprecated
vue-app: Support
app/router.scrollBehavior.jsand deprecatescrollBehavior vue-app: Add
<client-only> alias for<no-ssr>vue-app: Allow customizing loading indicator
vue-app: Add
$nuxt.refresh()method or refresh the actual pageasyncDataandfetchvue-app: Export router options
vue-app: Support functional
watchQuerytypescript: Externalize typescript support
2.8.1
4 Jun 2019Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
2.8.0
30 May 2019Add a group for SSR logs to avoid polluting the browser console
Fancier browser logs with consola
Developer Experience
Add a group for SSR logs to avoid polluting the browser console
Fancier browser logs with consola
nuxt-ssr-logs-2
nuxt-hmr-indicator
Watch for
pages/creation when default page displayedOnly listen for file changes for supported extensions
Re-use the same port when randomly assigned when restarting in dev mode
Bug Fixes
types: Add type definition for functional
babel.presetsvue-app: Reuse page component with
watchQueryvue-app: Remove trailing slash in vue-router non-strict mode
vue-app: Don't attach catch handler to already loaded component
vue-app:
fixPrepatchin-out transition fix (issue #5797)
Dependency upgrades
2.7.1
14 May 2019
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.