Skip to content

Commit

Permalink
Main v5 rewrite
Browse files Browse the repository at this point in the history
New features:
- Remove legacy browser support (pre pushState)
- Add state to hash history
- Use custom window when creating history objects
- Better history.block API (wip)
- Fix location.pathname encoding issues
- About 50% smaller
- No dependencies

Removed features:
- Removes basename support
- Removes getUserConfirmation
- Removes keyLength
- Removes hashType
- Removes relative pathname support in hash + memory histories

Still TBD:
- Missing pathname support in push/replace

Fixes #624
Fixes #704
Fixes #723
Fixes #726
  • Loading branch information
mjackson committed Nov 5, 2019
1 parent c013f2f commit 5416474
Show file tree
Hide file tree
Showing 61 changed files with 989 additions and 2,904 deletions.
24 changes: 12 additions & 12 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"esm/history.js": {
"bundled": 28076,
"minified": 12353,
"gzipped": 3575,
"bundled": 13433,
"minified": 5829,
"gzipped": 1706,
"treeshaked": {
"rollup": {
"code": 208,
"import_statements": 132
"code": 43,
"import_statements": 43
},
"webpack": {
"code": 1324
"code": 1027
}
}
},
"umd/history.js": {
"bundled": 33021,
"minified": 11943,
"gzipped": 3917
"bundled": 14957,
"minified": 5450,
"gzipped": 1760
},
"umd/history.min.js": {
"bundled": 30384,
"minified": 9993,
"gzipped": 3501
"bundled": 14343,
"minified": 5137,
"gzipped": 1619
}
}
54 changes: 0 additions & 54 deletions modules/DOMUtils.js

This file was deleted.

80 changes: 0 additions & 80 deletions modules/LocationUtils.js

This file was deleted.

59 changes: 0 additions & 59 deletions modules/PathUtils.js

This file was deleted.

88 changes: 0 additions & 88 deletions modules/__tests__/BrowserHistory-basename-test.js

This file was deleted.

Loading

0 comments on commit 5416474

Please sign in to comment.