Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vuejs/vue-router
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 90cd269
Choose a base ref
...
head repository: vuejs/vue-router
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf9dc11
Choose a head ref

Commits on Oct 13, 2017

  1. use esm build in examples

    yyx990803 committed Oct 13, 2017
    Copy the full SHA
    ef4a046 View commit details

Commits on Oct 18, 2017

  1. [kr] Fix typo (#1826)

    jangjunha authored and kazupon committed Oct 18, 2017
    1
    Copy the full SHA
    0039fa4 View commit details
  2. Update navigation-guards.md (#1823)

    chenfengjw163 authored and kazupon committed Oct 18, 2017
    Copy the full SHA
    2930d52 View commit details
  3. [en] typo (#1825)

    Jinjiang authored and kazupon committed Oct 18, 2017
    Copy the full SHA
    6d97e5e View commit details

Commits on Oct 22, 2017

  1. [Doc FR]: Update with 2.5 version! (#1840)

    * VueRouter vs. Vue Router
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * `VueRouter` vs. Vue Router
    
    * no changes for EN docs.
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * New review from @rspt
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Introduce @rspt review
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * @posva review
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Update documentation with version 2.5
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Little fixes
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    MachinisteWeb authored and posva committed Oct 22, 2017
    Copy the full SHA
    ced6e87 View commit details
  2. docs(params): comment about params

    posva committed Oct 22, 2017
    2
    Copy the full SHA
    af95719 View commit details

Commits on Oct 23, 2017

  1. Update Japanese docs (#1813)

    * docs: http -> https
    
    * docs: tweak js string quoting
    
    NOTE:
      pick up from 7d2e60e
    
    * docs: pick up from a5ecfa1
    
    * docs: translate previous commit
    
    * docs: pick up from 8f10178
    
    * docs: translate previous commit
    
    * docs: pick up from 91f4ad7
    
    * docs: translate previous commit
    
    * docs: pick up from a06e0b2
    
    * docs: translate previous commit
    
    * docs: pick up from 3b16bf1
    
    * docs: translate previous commit
    
    * docs: pick up from f0871d1
    
    * docs: translate previous commit
    
    * docs: update SUMMARY translation
    
    NOTE:
      pick up from b707352
    
    * docs: fixed translation mistaking
    
    ref: #1813 (comment)
    
    * docs: fixed typo
    kazupon authored Oct 23, 2017
    Copy the full SHA
    8ee872f View commit details
  2. feat: call scrollBehavior with app context (#1804)

    * Call scrollBehavior with app context
    
    This allows us to listen for events in the scroll behavior hook, thus enabling us to resolve a promise returned by the hook upon triggering of some custom event (for example one emited on the $root by an after-leave transition event).
    
    * Update scrollBehavior example
    
    * change scrollBehavior context to router
    homerjam authored and yyx990803 committed Oct 23, 2017
    Copy the full SHA
    c93a734 View commit details
  3. docs(search): remove emojis

    This should fix the search. There aren't emojis anywhere else, so having them removed is more consistant
    posva authored Oct 23, 2017
    Copy the full SHA
    e5778d7 View commit details

Commits on Oct 24, 2017

  1. docs(fr): fix grammar

    posva committed Oct 24, 2017
    Copy the full SHA
    e2f0a11 View commit details
  2. Copy the full SHA
    9eecbd9 View commit details
  3. fix: only setupScroll when support pushState due to possible fallback…

    …: false (#1835)
    
    * fix #1834
    
    * judge supportsPushState before setupScroll
    
    * expectScroll -> supportsScroll
    JounQin authored and yyx990803 committed Oct 24, 2017
    Copy the full SHA
    fac60f6 View commit details
  4. Copy the full SHA
    f958565 View commit details
  5. [Doc EN]: Official Vue way to speak about a version and greater versi…

    …on. (#1841)
    
    * VueRouter vs. Vue Router
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * `VueRouter` vs. Vue Router
    
    * no changes for EN docs.
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * New review from @rspt
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Introduce @rspt review
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * @posva review
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Update documentation with version 2.5
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Little fixes
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Add + to version
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Little french fix
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    MachinisteWeb authored and posva committed Oct 24, 2017
    Copy the full SHA
    446272f View commit details

Commits on Oct 25, 2017

  1. [RU] Translation update (#1844)

    * navigation-guards.md нумерация версии
    
    * history-mode.md правки по IIS
    
    * lazy-loading HTTPS
    
    * dynamic-mathcing.md HTTPS
    
    * getting-started.md HTTPS
    
    * navigation.md мелкие правки
    
    * nested-routes.md HTTPS
    
    * navigation-guards.md правки
    
    * history-mode.md кавычки и добавлена секция про Firebase
    
    * redirect-and-alias.md добавлено уточнение
    
    * SUMMARY.md правка
    
    * options.md обновлён пример сигнатуры
    
    * getting-started.md добавлены новые правки
    
    * navigation-guards.md новые правки
    
    * scroll-behavior.md новые правки
    
    * getting-started.md опечатки
    
    * SUMMARY.md правка версий
    
    * passing-props.md правка
    Alex-Sokolov authored and posva committed Oct 25, 2017
    Copy the full SHA
    deb48e9 View commit details

Commits on Oct 28, 2017

  1. Update SUMMARY.md (#1853)

    magicansk authored and kazupon committed Oct 28, 2017
    Copy the full SHA
    0370f70 View commit details

Commits on Nov 6, 2017

  1. [zh-cn] synced from #10b7de7 to #ef4a046 (#1820)

    * [zh-cn] synced recent updates
    
    * [zh-cn] translation
    
    * [zh-cn] typo
    Jinjiang authored and fnlctrl committed Nov 6, 2017
    Copy the full SHA
    feeade6 View commit details

Commits on Nov 7, 2017

  1. [zh-cn] synced from #0039fa4 to #0370f70 (#1865)

    * [zh-cn] synced from #0039fa4 to #0370f70
    
    * Update SUMMARY.md
    Jinjiang authored and posva committed Nov 7, 2017
    Copy the full SHA
    f164e87 View commit details
  2. Fix typo (#1864)

    Gareth Redfern authored and posva committed Nov 7, 2017
    Copy the full SHA
    ce4f63f View commit details

Commits on Nov 16, 2017

  1. Corrected some typos (#1889)

    Corrected some typos (mainly Komponenente -> Komponente) and changed some of the wordings.
    fheckl authored and posva committed Nov 16, 2017
    Copy the full SHA
    c8328a9 View commit details

Commits on Nov 17, 2017

  1. Update docs/ja (#1877)

    * Update SUMMARY.md
    
    * Update navigation-guards.md
    38elements authored and posva committed Nov 17, 2017
    Copy the full SHA
    8c16e12 View commit details
  2. docs: remove version

    close #1801
    posva committed Nov 17, 2017
    Copy the full SHA
    07d0298 View commit details
  3. Copy the full SHA
    c837666 View commit details

Commits on Nov 19, 2017

  1. doc(ja) typo in variable names (#1894)

    * Typo fixes
    
    There are a few wrong variables.
    
    * Update named-routes.md
    miyanokomiya authored and posva committed Nov 19, 2017
    Copy the full SHA
    11c6614 View commit details

Commits on Nov 20, 2017

  1. Update meta.md (#1897)

    还有在导航守卫中的路(有)对象 => 还有在导航守卫中的路(由)对象
    wangyi7099 authored and posva committed Nov 20, 2017
    Copy the full SHA
    f617939 View commit details

Commits on Nov 25, 2017

  1. docs(typo): add missing comma (#1903)

    Add missing comma to routes list example
    KevinElberger authored and posva committed Nov 25, 2017
    Copy the full SHA
    09b772e View commit details

Commits on Nov 26, 2017

  1. Copy the full SHA
    2090189 View commit details
  2. [docs] fixed #1897 to other languages (#1907)

    Jinjiang authored and posva committed Nov 26, 2017
    Copy the full SHA
    3cdb3d5 View commit details
  3. Fix typo (#1891)

    lonre authored and posva committed Nov 26, 2017
    Copy the full SHA
    d543ca9 View commit details

Commits on Dec 4, 2017

  1. [Doc FR]: fix typo (#1913)

    * VueRouter vs. Vue Router
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * `VueRouter` vs. Vue Router
    
    * no changes for EN docs.
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * New review from @rspt
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Introduce @rspt review
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * @posva review
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Update documentation with version 2.5
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Little fixes
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Add + to version
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Little french fix
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Typo fix
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    MachinisteWeb authored and posva committed Dec 4, 2017
    Copy the full SHA
    c30daa9 View commit details

Commits on Dec 7, 2017

  1. remove outdated comment (#1845)

    smonkey72 authored and LinusBorg committed Dec 7, 2017
    Copy the full SHA
    c06e623 View commit details

Commits on Dec 31, 2017

  1. Avoid updating license every year (#1957)

    Uses the same template as in main repo to avoid recieving a PR every year.
    m1guelpf authored and posva committed Dec 31, 2017
    Copy the full SHA
    b132d4b View commit details

Commits on Jan 7, 2018

  1. typo in doc (#1966)

    MathieuDerelle authored and posva committed Jan 7, 2018
    Copy the full SHA
    1227d8c View commit details

Commits on Jan 8, 2018

  1. chore(docs): 翻译有误 (#1970)

    One consequence of this is that <router-link to="/"> will be active for every route!
    =>按照这个规则,`<router-link to="/">` 将会点亮各个路由!
    
    翻译有误,应该改为:
    
    按照这个规则,每个路由都会激活`<router-link to="/">` !
    ts0307 authored and posva committed Jan 8, 2018
    Copy the full SHA
    0ecd68a View commit details
  2. chore(docs): add link to onError

    Closes #1973 (#1974)
    dancrumb authored and posva committed Jan 8, 2018
    Copy the full SHA
    81e6ce0 View commit details

Commits on Jan 10, 2018

  1. docs: add example of nested named routes (#1931)

    * docs: add example of nested named routes
    
    Closes #1921
    
    * docs: add link of jsfiddle in note
    
    * review
    
    * [skip ci] review
    posva authored Jan 10, 2018
    Copy the full SHA
    9e78ca2 View commit details

Commits on Jan 14, 2018

  1. docs(typo): fix typo in named-views (#1997)

    cdump authored and posva committed Jan 14, 2018
    Copy the full SHA
    f90cf39 View commit details
  2. docs: RU translation update (#1998)

    * navigation-guards.md нумерация версии
    
    * history-mode.md правки по IIS
    
    * lazy-loading HTTPS
    
    * dynamic-mathcing.md HTTPS
    
    * getting-started.md HTTPS
    
    * navigation.md мелкие правки
    
    * nested-routes.md HTTPS
    
    * navigation-guards.md правки
    
    * history-mode.md кавычки и добавлена секция про Firebase
    
    * redirect-and-alias.md добавлено уточнение
    
    * SUMMARY.md правка
    
    * options.md обновлён пример сигнатуры
    
    * getting-started.md добавлены новые правки
    
    * navigation-guards.md новые правки
    
    * scroll-behavior.md новые правки
    
    * getting-started.md опечатки
    
    * SUMMARY.md правка версий
    
    * passing-props.md правка
    
    * navigation-guards.md добавлена ссылка
    
    * named-views.md добавлена секция
    Alex-Sokolov authored and posva committed Jan 14, 2018
    Copy the full SHA
    92342ec View commit details

Commits on Jan 15, 2018

  1. docs(cn): 错别字 (#2000)

    路有 -> 路由
    LWJcoder authored and posva committed Jan 15, 2018
    Copy the full SHA
    75f2c1e View commit details
  2. [en] Fix typo in named-views (#1999)

    vincenttee authored and posva committed Jan 15, 2018
    1
    Copy the full SHA
    fbf92a9 View commit details
  3. docs: minor linting issue

    posva committed Jan 15, 2018
    Copy the full SHA
    6480339 View commit details
  4. [docs][zh-cn] sync recent udpates to #9e78ca2 (#1984)

    * [docs][zh-cn] sync recent udpates to #9e78ca2
    
    * Update named-views.md
    Jinjiang authored and posva committed Jan 15, 2018
    Copy the full SHA
    bbed9a0 View commit details

Commits on Jan 16, 2018

  1. fix: fix the test in async.spec.js (#1953)

    evagy authored and posva committed Jan 16, 2018
    Copy the full SHA
    4e9e66b View commit details
  2. fix(history-mode): correcting indentation in web.config example (#1948)

    * Fixed spacing in web.config example
    
    * Fix indentation in web.config example (FR)
    
    * Fix indentation in web.config example (JA)
    
    * Fix indentation in web.config example (KR)
    
    * Fix indentation in web.config example (RU)
    
    * Fix indentation in web.config example (zh-cn)
    benmccallum authored and posva committed Jan 16, 2018
    Copy the full SHA
    4b071f9 View commit details
  3. chore: prevent banner from being removed by minifiers (#1851)

    Trying to debug a webpack bundle splitting setup was made a bit trickier because it was hard to tell where this package was being included. Adding this should make the process a bit simpler.
    scottbedard authored and posva committed Jan 16, 2018
    Copy the full SHA
    0aac967 View commit details

Commits on Jan 23, 2018

  1. docs(cn): fix translation error (#2015)

    lingwei0604 authored and posva committed Jan 23, 2018
    Copy the full SHA
    63e00c1 View commit details

Commits on Jan 29, 2018

  1. docs(fr): 2017 dec - 2018 jan (#2030)

    * VueRouter vs. Vue Router
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * `VueRouter` vs. Vue Router
    
    * no changes for EN docs.
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * New review from @rspt
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Introduce @rspt review
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * @posva review
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Update documentation with version 2.5
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Little fixes
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Add + to version
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Little french fix
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * Typo fix
    
    Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
    
    * 2018 jan-fev update
    
    Signed-off-by: MachinisteWeb <bruno.lesieur@gmail.com>
    
    * typo
    
    Signed-off-by: MachinisteWeb <bruno.lesieur@gmail.com>
    
    * Update named-views.md
    MachinisteWeb authored and posva committed Jan 29, 2018
    Copy the full SHA
    39402d1 View commit details

Commits on Jan 30, 2018

  1. Fixed a typo in getting-started.md (#2035)

    "Ertelle" to "Erstelle" in list point 4.
    b3nl authored and posva committed Jan 30, 2018
    Copy the full SHA
    e9f3b14 View commit details
  2. docs(fr): Update redirect-and-alias.md (#2037)

    Correction conjugaison
    fredrocheron authored and posva committed Jan 30, 2018
    Copy the full SHA
    c40425a View commit details

Commits on Feb 7, 2018

  1. Copy the full SHA
    7f1a6d8 View commit details
Showing 345 changed files with 18,101 additions and 10,277 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": ["es2015", "flow-vue"],
"presets": ["env", "flow-vue"],
"plugins": ["syntax-dynamic-import"]
}
71 changes: 71 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
version: 2

defaults: &defaults
working_directory: ~/project/vue-router
docker:
- image: circleci/node:8-browsers

jobs:
install:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v1-vue-{{ .Branch }}-
- v1-vue-
- run: yarn install
- save_cache:
key: v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules/
- persist_to_workspace:
root: ~/project
paths:
- vue-router

lint-flow-types:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: npm run lint
- run: npm run flow
- run: npm run test:types

test-unit:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: npm run test:unit
# add codecov once it is actually ran
# - run:
# name: report coverage stats for non-PRs
# command: |
# if [[ -z $CI_PULL_REQUEST ]]; then
# ./node_modules/.bin/codecov
# fi

test-e2e:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: npm run test:e2e

workflows:
version: 2
install-and-parallel-test:
jobs:
- install
- test-unit:
requires:
- install
- lint-flow-types:
requires:
- install
- test-e2e:
requires:
- install
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
@@ -11,5 +11,5 @@
flow

[options]
unsafe.enable_getters_and_setters=true
#unsafe.enable_getters_and_setters=true
suppress_comment= \\(.\\|\n\\)*\\$flow-disable-line
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -7,4 +7,5 @@ selenium-debug.log
dist/*.gz
dist/*.map
explorations
docs/_book
docs/.vuepress/dist
yarn-error.log
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2013-2016 Evan You
Copyright (c) 2013-present Evan You

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# vue-router [![Build Status](https://img.shields.io/circleci/project/vuejs/vue-router/dev.svg)](https://circleci.com/gh/vuejs/vue-router)
# vue-router [![Build Status](https://img.shields.io/circleci/project/github/vuejs/vue-router/dev.svg)](https://circleci.com/gh/vuejs/vue-router)

> This is vue-router 2.0 which works only with Vue 2.0. For the 1.x router see the [1.0 branch](https://github.com/vuejs/vue-router/tree/1.0).
@@ -32,7 +32,7 @@ npm run dev
# lint & run all tests
npm test

# serve docs at localhost:4000 (requires global gitbook-cli)
# serve docs at localhost:8080
npm run docs
```

@@ -60,6 +60,6 @@ Details changes for each release are documented in the [release notes](https://g

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2013-2017 Evan You
Copyright (c) 2013-present Evan You


19 changes: 0 additions & 19 deletions bower.json

This file was deleted.

4 changes: 2 additions & 2 deletions build/build.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ if (!fs.existsSync('dist')) {
fs.mkdirSync('dist')
}

build(Object.keys(configs).map(key => configs[key]))
build(configs)

function build (builds) {
let built = 0
@@ -32,7 +32,7 @@ function buildEntry ({ input, output }) {
.then(bundle => bundle.generate(output))
.then(({ code }) => {
if (isProd) {
var minified = uglify.minify(code, {
const minified = uglify.minify(code, {
output: {
preamble: output.banner,
/* eslint-disable camelcase */
2 changes: 1 addition & 1 deletion build/configs.js
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ const node = require('rollup-plugin-node-resolve')
const replace = require('rollup-plugin-replace')
const version = process.env.VERSION || require('../package.json').version
const banner =
`/**
`/*!
* vue-router v${version}
* (c) ${new Date().getFullYear()} Evan You
* @license MIT
11 changes: 0 additions & 11 deletions build/update-docs.sh

This file was deleted.

3 changes: 0 additions & 3 deletions circle.yml

This file was deleted.

Loading