]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor: rename histories
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 12 Oct 2019 15:06:22 +0000 (17:06 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 12 Oct 2019 15:07:42 +0000 (17:07 +0200)
__tests__/history/html5.spec.ts
__tests__/history/memory.spec.ts [moved from __tests__/history/abstract.spec.ts with 98% similarity]
__tests__/query.spec.ts
__tests__/url.spec.ts
src/history/hash.ts [moved from src/history/hash.2.ts with 87% similarity]
src/history/html5.ts [moved from src/history/html5.2.ts with 100% similarity]
src/history/memory.ts [moved from src/history/abstract.2.ts with 100% similarity]
src/index.ts

index 8cabc0b45d3ef658c50f395629a167115e4d82ab..7e1e1ca36468d65a4d2490b488affa1e223d9a46 100644 (file)
@@ -1,4 +1,4 @@
-import createHistory from '../../src/history/html5.2'
+import createHistory from '../../src/history/html5'
 import { createDom } from '../utils'
 
 // TODO: is it really worth testing this implementation on jest or is it
similarity index 98%
rename from __tests__/history/abstract.spec.ts
rename to __tests__/history/memory.spec.ts
index 83dcdf2af8734a5b3b72cb86c08dc18dfa0135fd..c6ecaf29f7a541a2ca56f7ca4b5c763958772962 100644 (file)
@@ -1,4 +1,4 @@
-import createMemoryHistory from '../../src/history/abstract.2'
+import createMemoryHistory from '../../src/history/memory'
 import {
   START,
   HistoryLocationNormalized,
index c1d505beb0e193fb8fdba7b998b6c9113fb37c90..8c50da28b4b2f93302225db6f4309f824b7c635c 100644 (file)
@@ -1,4 +1,4 @@
-import { parseQuery } from '../src/history/utils'
+import { parseQuery } from '../src/history/common'
 
 describe('parseQuery', () => {
   it('works with leading ?', () => {
index 560b755fd258e720223ec456f2430388e3db0ca9..3a923cbbffa7a0fc5d4fe39f6076bd07a92758f2 100644 (file)
@@ -2,7 +2,7 @@ import {
   parseURL,
   stringifyURL,
   normalizeLocation,
-} from '../src/history/utils'
+} from '../src/history/common'
 
 describe('parseURL', () => {
   it('works with no query no hash', () => {
similarity index 87%
rename from src/history/hash.2.ts
rename to src/history/hash.ts
index 583a305eba5c25e48837af3f3e2f877d3c2eb3fd..706f5fbebd4f47342fea01b3e3fdd42717e5184c 100644 (file)
@@ -1,5 +1,5 @@
 import { RouterHistory } from './common'
-import createHistory from './html5.2'
+import createHistory from './html5'
 
 export default function createHashHistory(): RouterHistory {
   // Make sure this implementation is fine in terms of encoding, specially for IE11
similarity index 100%
rename from src/history/html5.2.ts
rename to src/history/html5.ts
index ed0526abb6e6a52aea3af75519efb9dfa5e4d8e2..a46e17b24287bf4bf5b50371dbb92dc1ae975e59 100644 (file)
@@ -1,7 +1,7 @@
 import { Router, RouterOptions } from './router'
 import { PluginFunction, VueConstructor } from 'vue'
-import createHistory from './history/html5.2'
-import createMemoryHistory from './history/abstract.2'
+import createHistory from './history/html5'
+import createMemoryHistory from './history/memory'
 import View from './components/View'
 import Link from './components/Link'