Skip to content

Commit

Permalink
Revert "Deprecate createLocation and locationsAreEqual"
Browse files Browse the repository at this point in the history
This reverts commit 2c7250b.
  • Loading branch information
mjackson committed Sep 11, 2019
1 parent 4a8e670 commit b141a1b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 44 deletions.
20 changes: 10 additions & 10 deletions .size-snapshot.json
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
}
}
10 changes: 0 additions & 10 deletions modules/deprecate.js

This file was deleted.

29 changes: 5 additions & 24 deletions modules/index.js
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';

0 comments on commit b141a1b

Please sign in to comment.