Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.11.0 #6733

Merged
merged 70 commits into from
Dec 17, 2019
Merged

v2.11.0 #6733

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
5a46547
chore: display coverage for master (codecov bug)
Atinux Oct 23, 2019
8cbc85a
chore(deps): update devdependency jest-junit to v9 (#6608)
renovate[bot] Oct 28, 2019
d2d0e11
chore(deps): update all non-major dependencies (#6603)
renovate[bot] Oct 28, 2019
fc12477
chore(deps): update devdependency puppeteer-core to v2 (#6613)
renovate[bot] Oct 28, 2019
e305431
chore(deps): lock file maintenance (#6621)
renovate[bot] Oct 28, 2019
9f921fe
fix(vue-app): add `prefetched` class to `<nuxt-link>` after chunk loa…
Atinux Oct 28, 2019
0980dad
chore: `.github/config.yml` for issue template (#6630)
dennishzg Oct 29, 2019
4f0aa74
perf(webpack): prefer using `contenthash` (#6632)
danielroe Oct 29, 2019
867b520
chore(deps): update dependency caniuse-lite to ^1.0.30001006 (#6633)
renovate[bot] Oct 30, 2019
223d3b5
chore: remove unused deps (#6637)
clarkdo Oct 30, 2019
8430aa4
chore(deps): update devdependency rollup to ^1.26.2 (#6643)
renovate[bot] Nov 1, 2019
8ee99bc
chore(deps): update all non-major dependencies (#6647)
renovate[bot] Nov 3, 2019
3948e60
chore: limit stle bot to only issues (#6649)
clarkdo Nov 5, 2019
afb38fe
fix(vue-app): layout in error.vue not work for Vue.extend component (…
clarkdo Nov 5, 2019
9530318
chore(deps): update all non-major dependencies (#6653)
renovate[bot] Nov 5, 2019
edd054e
test: fix chrome detection in macOS Catalina (#6638)
clarkdo Nov 9, 2019
adce605
chore(deps): update all non-major dependencies (#6665)
renovate[bot] Nov 9, 2019
78fda34
chore(github): add chinese translation for issue template (#6657)
clarkdo Nov 11, 2019
abd8280
chore(deps): update all non-major dependencies (#6677)
renovate[bot] Nov 12, 2019
9540b5a
chore: fix typo in middleware readme (#6686)
Nov 12, 2019
2338d3c
chore(deps): lock file maintenance (#6679)
renovate[bot] Nov 12, 2019
701f2d0
fix(vue-app): apply path-to-regexp options to tokensToFunction… (#6683)
pimlie Nov 12, 2019
5567d73
chore(deps): update all non-major dependencies (#6689)
renovate[bot] Nov 13, 2019
f54e9b2
chore(deps): update dependency caniuse-lite to ^1.0.30001010 (#6694)
renovate[bot] Nov 14, 2019
3bc51f9
chore(deps): lock file maintenance (#6704)
renovate[bot] Nov 18, 2019
587d1e9
chore(deps): update all non-major dependencies (#6708)
renovate[bot] Nov 19, 2019
6cc962f
fix: context.route issue in plugins and splitChunks.pages === false (…
mshahbazi Nov 19, 2019
2f76e8e
chore(deps): update all non-major dependencies (#6709)
renovate[bot] Nov 23, 2019
9ada4e6
feat(config): add `ignoreOptions` for `node-ignore` (#6597)
clarkdo Nov 24, 2019
bb9427e
feat(vue-renderer): support evaluation in templates (#6505)
farnabaz Nov 24, 2019
e9945b0
fix(vue-app): pass router mode to `getLocation` (#6658)
rchl Nov 24, 2019
75bb088
feat: optionally strip non-client or non-server code (#6149)
manniL Nov 24, 2019
dd0b7a8
chore(deps): update all non-major dependencies (#6724)
renovate[bot] Nov 25, 2019
ff34a8a
chore(deps): lock file maintenance (#6723)
renovate[bot] Nov 26, 2019
d837610
feat(vue-app): upgrade `vue-router` to 3.1.x (#6722)
clarkdo Nov 26, 2019
e8aca9e
chore: update @nuxtjs/eslint-config to v2 and fix lint errors (#6732)
clarkdo Nov 26, 2019
75a29c8
global name is wrongly set to nuxt-edge (#6736)
clarkdo Nov 27, 2019
bd0ef6f
chore(ci): separate dev test and unit test (#6737)
clarkdo Nov 27, 2019
484c990
chore(ci): add requires for test-dev
clarkdo Nov 27, 2019
e72d776
disasble csp test for now
clarkdo Nov 28, 2019
81de57f
chore(deps): update dependency extract-css-chunks-webpack-plugi… (#6738)
renovate[bot] Nov 28, 2019
a89816f
chore(ci): use node.js lts instead of latest (#6747)
clarkdo Nov 28, 2019
04e4e0f
chore(ci): remove coverage collection in fixtures (#6739)
clarkdo Nov 29, 2019
697407d
test: pass array to allowedSources
danielroe Nov 30, 2019
5945845
test: use `got` instead of `request` (#6740)
clarkdo Dec 2, 2019
b981f8b
chore(deps): update devdependency jest-junit to v10 (#6757)
renovate[bot] Dec 3, 2019
4b8fc7d
chore(deps): update all non-major dependencies (#6748)
renovate[bot] Dec 3, 2019
ab7a129
chore(deps): lock file maintenance (#6756)
renovate[bot] Dec 3, 2019
8616822
Merge branch 'dev' into allowed-sources-test
clarkdo Dec 3, 2019
75d67c6
chore(deps): update devdependency got to v10 (#6759)
renovate[bot] Dec 3, 2019
53141cc
chore(docs): update code-of-conduct (#6719)
harrytran998 Dec 4, 2019
3cc9d83
doc: fix spelling and invalid links [platinium] (#6764)
mornir Dec 8, 2019
d427e4a
chore(deps): update all non-major dependencies (#6761)
renovate[bot] Dec 8, 2019
e2a9926
Merge branch 'dev' into allowed-sources-test
clarkdo Dec 8, 2019
3cc4770
chore(deps): update dependency serialize-javascript to ^2.1.1 (#6769)
renovate[bot] Dec 8, 2019
e61f9c3
Merge branch 'dev' into allowed-sources-test
clarkdo Dec 8, 2019
e7812bd
test: pass array to allowedSources (#6752)
clarkdo Dec 8, 2019
3938e58
chore(deps): update all non-major dependencies
renovate-bot Dec 9, 2019
112d836
chore(deps): update all non-major dependencies (#6773)
clarkdo Dec 10, 2019
e999060
refactor(server): only append not empty allowed sources to csp (#6771)
clarkdo Dec 16, 2019
ae769ce
fix(utils): flatRoutes regex for nested routes with trailing slash en…
cain Dec 16, 2019
0ef6c72
chore(deps): update dependency semver to v7 (#6789)
renovate[bot] Dec 16, 2019
b2a35d2
fix(utils): add catch statement to non function block in `serializeFu…
crutch12 Dec 16, 2019
bb5f84c
chore(deps): update all non-major dependencies (#6779)
renovate[bot] Dec 16, 2019
4669b6b
test: semver is not mockable
pi0 Dec 16, 2019
64fb46c
chore: update yarn.lock
pi0 Dec 16, 2019
9297795
chore(deps): update dependency semver to ^7.1.0 (#6797)
renovate[bot] Dec 17, 2019
51b3163
chore(deps): update dependency consola to ^2.11.1 (#6800)
renovate[bot] Dec 17, 2019
311ff27
test: mock semver/functions/satisfies
pi0 Dec 17, 2019
7af9ec8
v2.11.0
pi0 Dec 17, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 16 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ executors:
type: boolean
default: false
docker:
- image: circleci/node:latest<<# parameters.browsers >>-browsers<</ parameters.browsers >>
- image: circleci/node:lts<<# parameters.browsers >>-browsers<</ parameters.browsers >>
working_directory: ~/project
environment:
NODE_ENV: test
Expand Down Expand Up @@ -110,9 +110,7 @@ jobs:
- attach-project
- run:
name: Build Fixtures
command: yarn test:fixtures -i --coverage && yarn coverage -F fixtures
environment:
JEST_JUNIT_OUTPUT_NAME: fixtures.xml
command: yarn test:fixtures -i
- store-test-results
- persist_to_workspace:
root: ~/project
Expand All @@ -130,13 +128,22 @@ jobs:
# --------------------------------------------------------------------------
# Phase 3: Unit and E2E tests
# --------------------------------------------------------------------------
test-dev:
executor: node
steps:
- attach-project
- run:
name: Dev Tests
command: yarn test:dev -w=2
- store-test-results

test-unit:
executor: node
steps:
- attach-project
- run:
name: Unit Tests
command: yarn test:unit -w=2 --coverage && yarn coverage -F unit
command: yarn test:unit --coverage && yarn coverage -F unit
environment:
JEST_JUNIT_OUTPUT_NAME: unit.xml
- store-test-results
Expand Down Expand Up @@ -189,10 +196,11 @@ workflows:
- audit: { requires: [setup] }
- build: { requires: [setup] }
- lint-app: { requires: [build] }
- test-dev: { requires: [build] }
- test-unit: { requires: [build] }
- test-e2e: { requires: [build] }
- release-commit:
requires: [build, lint, lint-app, audit, test-unit, test-e2e]
requires: [build, lint, lint-app, audit, test-dev, test-unit, test-e2e]
filters:
<<: *release_branches

Expand All @@ -204,10 +212,11 @@ workflows:
- audit: { requires: [setup] }
- build: { requires: [setup] }
- lint-app: { requires: [build] }
- test-dev: { requires: [build] }
- test-unit: { requires: [build] }
- test-e2e: { requires: [build] }
- release-nightly:
requires: [build, lint, lint-app, audit, test-unit, test-e2e]
requires: [build, lint, lint-app, audit, test-dev, test-unit, test-e2e]
triggers:
- schedule:
cron: "0 0 * * *"
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = {
},
rules: {
'no-console': 'error',
'no-debugger': 'error'
'no-debugger': 'error',
quotes: ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }]
},
overrides: [{
files: [ 'test/fixtures/*/.nuxt*/**' ],
Expand Down
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
blank_issues_enabled: false
contact_links:
- name: 🚨 Bug report | Bug 提交
url: https://bug.nuxtjs.org/
about: |
Please report bugs here.
请在此提交 Bug。
- name: 🙋 Feature request | 新功能提案
url: https://feature.nuxtjs.org/
about: |
Please request features here.
请在此提交新功能提案。
- name: 🤔 Consulting from the Nuxt team | 咨询 Nuxt 团队
url: https://otechie.com/nuxt
about: |
Get technical support, project audits, app deployments, and custom development from the core Nuxt.js team.
咨询核心 Nuxt.js 团队以获得技术支持,项目审核,应用程序部署以及自定义开发等方面上的帮助。
- name: ❗️ All other issues | 其他问题
url: https://cmty.nuxtjs.org/
about: |
Please create all other issues here.
请在此创建其他类型问题。
4 changes: 3 additions & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Configuration for probot-stale - https://github.com/probot/stale
daysUntilStale: 21
daysUntilStale: 30
daysUntilClose: 7
staleLabel: stale
exemptLabels:
- "cmty:feature-request"
- "WIP"
- "pending"
- "discussion"
exemptAssignees: true
only: issues
markComment: >
Thanks for your contribution to Nuxt.js!

Expand Down
24 changes: 12 additions & 12 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Expand All @@ -40,7 +40,7 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version].

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
[version]: http://contributor-covenant.org/version/1/4
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<p align="center">
<a href="https://circleci.com/gh/nuxt/nuxt.js"><img src="https://badgen.net/circleci/github/nuxt/nuxt.js/dev" alt="Build Status"></a>
<a href="https://dev.azure.com/nuxt/nuxt.js/_build/latest?definitionId=1"><img src="https://dev.azure.com/nuxt/nuxt.js/_apis/build/status/nuxt.js" alt="Azure Build Status"></a>
 <a href="https://codecov.io/gh/nuxt/nuxt.js"><img src="https://badgen.net/codecov/c/github/nuxt/nuxt.js/dev" alt="Coverage Status"></a>
 <a href="https://codecov.io/gh/nuxt/nuxt.js"><img src="https://badgen.net/codecov/c/github/nuxt/nuxt.js/master" alt="Coverage Status"></a>
<a href="https://www.npmjs.com/package/nuxt"><img src="https://badgen.net/npm/dm/nuxt" alt="Downloads"></a>
<a href="https://www.npmjs.com/package/nuxt"><img src="https://badgen.net/npm/v/nuxt" alt="Version"></a>
<a href="https://www.npmjs.com/package/nuxt"><img src="https://badgen.net/npm/license/nuxt" alt="License"></a>
<a href="https://discord.nuxtjs.org/"><img src="https://badgen.net/badge/Discord/join-us/7289DA" alt="Discord"></a>
</p>
<p align="center">
<a href="#platinium-sponsors" alt="Platinium Sponsors on Open Collective"><img src="https://opencollective.com/nuxtjs/tiers/platinium-sponsors/badge.svg" /></a>
<a href="#platinum-sponsors" alt="Platinum Sponsors on Open Collective"><img src="https://opencollective.com/nuxtjs/tiers/platinum-sponsors/badge.svg" /></a>
<a href="#gold-sponsors" alt="Gold Sponsors on Open Collective"><img src="https://opencollective.com/nuxtjs/tiers/gold-sponsors/badge.svg" /></a>
<a href="#silver-sponsors" alt="Silver Sponsors on Open Collective"><img src="https://opencollective.com/nuxtjs/tiers/silver-sponsors/badge.svg" /></a>
<a href="#bronze-sponsors" alt="Bronze Sponsors on Open Collective"><img src="https://opencollective.com/nuxtjs/tiers/bronze-sponsors/badge.svg" /></a>
Expand Down Expand Up @@ -65,9 +65,9 @@ Funds donated via OpenCollective are managed with transparent expenses and will

Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/nuxtjs#contribute)]

### Platinium Sponsors
### Platinum Sponsors

[![Open Collective Platinium Sponsors][platinium-sponsors-src]][platinium-sponsors-href]
[![Open Collective Platinum Sponsors][platinum-sponsors-src]][platinum-sponsors-href]

### Gold Sponsors

Expand Down Expand Up @@ -229,8 +229,8 @@ If you discover a security vulnerability regarding Nuxt.js, please send an e-mai
[MIT](https://github.com/nuxt/nuxt.js/blob/dev/LICENSE)

<!-- Open Collective Tiers -->
[platinium-sponsors-src]: https://opencollective.com/nuxtjs/tiers/platinium-sponsors.svg?avatarHeight=96&width=890
[platinium-sponsors-href]: https://opencollective.com/nuxtjs#contributors
[platinum-sponsors-src]: https://opencollective.com/nuxtjs/tiers/platinum-sponsors.svg?avatarHeight=96&width=890
[platinum-sponsors-href]: https://opencollective.com/nuxtjs#contributors
[gold-sponsors-src]: https://opencollective.com/nuxtjs/tiers/gold-sponsors.svg?avatarHeight=80&width=890
[gold-sponsors-href]: https://opencollective.com/nuxtjs#contributors
[silver-sponsors-src]: https://opencollective.com/nuxtjs/tiers/silver-sponsors.svg?avatarHeight=64&width=890
Expand Down
28 changes: 14 additions & 14 deletions RELEASE_PLAN.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
## Release Plan

Starting with version `v2.4`, Nuxt will adhere to a formalized release plan (as good as possible).
Also, an end of life for older major versions is defined with this document
Also, an end of life for older major versions is defined with this document.

### Major versions (3.x -> 4.0)

Nuxt major releases are planned every **6 months**. This depends on a few factors though:

* If there are no breaking changes waiting for a release, no new major version will be published. Instead, another minor one will be released.
* In case of unexpected major updates of important dependencies like Vue, Webpack, and so on, major versions might be released *earlier* than planned.
- If there are no breaking changes waiting for a release, no new major version will be published. Instead, another minor one will be released
- In case of unexpected major updates of important dependencies like Vue, Webpack, and so on, major versions might be released _earlier_ than planned

The goal is to provide a **migration guide** for each major version as well, as escape hatches, so existing code
won't "just break".

### Minor versions (2.1 -> 2.2)

The release cycle for Nuxt.js minor versions is roughly **4 weeks**.
The release cycle for Nuxt.js minor versions is roughly **4 weeks**.

Three of the four weeks will be used for actual **feature implementations** while the last week will be used for
Three of the four weeks will be used for actual **feature implementations** while the last week will be used for
**testing, fixing bugs and thorough audits**.

That also means a *feature freeze* for the next minor version after these three weeks.
Features that aren't ready will be moved to the next cycle. "Waiting" for features
That also means a _feature freeze_ for the next minor version after these three weeks.
Features that aren't ready will be moved to the next cycle. "Waiting" for features
(for a longer time) will be avoided as good as possible to keep releases lean, concise, predictable and digestible.

### Patch releases (2.2.3 -> 2.2.4)

The last patch releases were mostly *bundled* fixes or single *hotfixes*.
In the future, fixes will be released **as soon as possible** after the actual PR/commit so people won't have to switch to `nuxt-edge` for bugfixes. This should improve the stability of Nuxt
The last patch releases were mostly _bundled_ fixes or single _hotfixes_.
In the future, fixes will be released **as soon as possible** after the actual PR/commit so people won't have to switch to `nuxt-edge` for bugfixes. This should improve the stability of Nuxt.

Fixes can or will include:

* Updates of dependencies (for various reasons, like a "faulty/buggy" dependency or an newer versions that works better with the Nuxt.js code)
* Fixes for our code
- Updates of dependencies (for various reasons, like a "faulty/buggy" dependency or an newer versions that works better with the Nuxt.js code)
- Fixes for our code

Bugfixes for upcoming features won't be ported of course.

### Edge Release Channel

After experimenting with `nuxt-edge` releases in the last time, the decisiion to do **nightly releases** for now instead of
releasing a version after *each commit* was made.
After experimenting with `nuxt-edge` releases in the last time, the decisiion to do **nightly releases** for now instead of
releasing a version after _each commit_ was made.

## End of Life

Starting with `v2.4`, every major Nuxt.js version will have an **End of Life**.
Previous releases will receive security updates and bugfixes **for one year and two weeks**, counted from the first release on.
Previous releases will receive security updates and bugfixes **for one year and two weeks**, counted from the first release on.
As Nuxt majors are approximately released once every 6 months, this will allow developers to "skip one major version" without being stuck with a broken or unsecure Nuxt.js dependency.
The EOL also applies to the documentation.
6 changes: 5 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ steps:
displayName: 'Test: Build Fixtures'

- script: |
set JEST_JUNIT_OUTPUT_NAME=unit.xml && set NODE_OPTIONS=--max_old_space_size=4096 && yarn test:unit -w=2
set NODE_OPTIONS=--max_old_space_size=4096 && yarn test:dev -w2
displayName: 'Test: Run dev tests'

- script: |
set JEST_JUNIT_OUTPUT_NAME=unit.xml && set NODE_OPTIONS=--max_old_space_size=4096 && yarn test:unit
displayName: 'Test: Run unit tests'

- task: PublishTestResults@2
Expand Down
46 changes: 23 additions & 23 deletions distributions/nuxt-start/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-start",
"version": "2.10.2",
"version": "2.11.0",
"description": "Starts Nuxt.js Application in production mode",
"keywords": [
"nuxt",
Expand All @@ -19,6 +19,27 @@
"homepage": "https://github.com/nuxt/nuxt.js#readme",
"repository": "nuxt/nuxt.js",
"license": "MIT",
"files": [
"bin",
"dist"
],
"main": "dist/nuxt-start.js",
"bin": "bin/nuxt-start.js",
"dependencies": {
"@nuxt/cli": "2.11.0",
"@nuxt/core": "2.11.0",
"node-fetch": "^2.6.0",
"vue": "^2.6.11",
"vue-client-only": "^2.0.0",
"vue-meta": "^2.3.1",
"vue-no-ssr": "^1.1.1",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
},
"engines": {
"node": ">=8.9.0",
"npm": ">=5.0.0"
},
"contributors": [
{
"name": "Sebastien Chopin (@Atinux)"
Expand Down Expand Up @@ -47,26 +68,5 @@
{
"name": "Pim (@pimlie)"
}
],
"files": [
"bin",
"dist"
],
"main": "dist/nuxt-start.js",
"bin": "bin/nuxt-start.js",
"dependencies": {
"@nuxt/cli": "2.10.2",
"@nuxt/core": "2.10.2",
"node-fetch": "^2.6.0",
"vue": "^2.6.10",
"vue-client-only": "^2.0.0",
"vue-meta": "^2.3.1",
"vue-no-ssr": "^1.1.1",
"vue-router": "~3.0.7",
"vuex": "^3.1.1"
},
"engines": {
"node": ">=8.9.0",
"npm": ">=5.0.0"
}
]
}