-
Notifications
You must be signed in to change notification settings - Fork 961
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Deprecate createLocation and locationsAreEqual"
This reverts commit 2c7250b.
- Loading branch information
Showing
3 changed files
with
15 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
{ | ||
"esm/history.js": { | ||
"bundled": 29006, | ||
"minified": 13074, | ||
"gzipped": 3778, | ||
"bundled": 28076, | ||
"minified": 12353, | ||
"gzipped": 3575, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 208, | ||
"import_statements": 132 | ||
}, | ||
"webpack": { | ||
"code": 2207 | ||
"code": 1324 | ||
} | ||
} | ||
}, | ||
"umd/history.js": { | ||
"bundled": 33889, | ||
"minified": 12474, | ||
"gzipped": 4193 | ||
"bundled": 33021, | ||
"minified": 11943, | ||
"gzipped": 3917 | ||
}, | ||
"umd/history.min.js": { | ||
"bundled": 31154, | ||
"minified": 10143, | ||
"gzipped": 3541 | ||
"bundled": 30384, | ||
"minified": 9993, | ||
"gzipped": 3501 | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
export { default as createBrowserHistory } from './createBrowserHistory.js'; | ||
export { default as createHashHistory } from './createHashHistory.js'; | ||
export { default as createMemoryHistory } from './createMemoryHistory.js'; | ||
export { parsePath, createPath } from './PathUtils.js'; | ||
|
||
import deprecate from './deprecate.js'; | ||
import { createLocation, locationsAreEqual } from './LocationUtils.js'; | ||
|
||
const deprecatedCreateLocation = deprecate( | ||
createLocation, | ||
'createLocation is deprecated and will be removed in the next major release.' + | ||
' To create a location object from a URL string, use `location = parsePath(url)` instead.' | ||
); | ||
|
||
const deprecatedLocationsAreEqual = deprecate( | ||
locationsAreEqual, | ||
'locationsAreEqual is deprecated and will be removed in the next major release.' + | ||
' To check if two location objects represent the same location, compare `locationA.key === locationB.key` instead.' | ||
); | ||
|
||
export { | ||
deprecatedCreateLocation as createLocation, | ||
deprecatedLocationsAreEqual as locationsAreEqual | ||
}; | ||
export { default as createBrowserHistory } from './createBrowserHistory'; | ||
export { default as createHashHistory } from './createHashHistory'; | ||
export { default as createMemoryHistory } from './createMemoryHistory'; | ||
export { createLocation, locationsAreEqual } from './LocationUtils'; | ||
export { parsePath, createPath } from './PathUtils'; |