PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/modules/route/index.js +1 -39 23.6.2 → 22.7.0 View file →
@@ -673,45 +673,8 @@
673 673 return res;
674 674 };
675 675 return history;
676 676 }
677 -function createMemoryHistory(opts = {
678 - initialEntries: ["/"]
679 -}) {
680 - const entries = opts.initialEntries;
681 - let index = opts.initialIndex ? Math.min(Math.max(opts.initialIndex, 0), entries.length - 1) : entries.length - 1;
682 - const states = entries.map(
683 - (_entry, index2) => assignKeyAndIndex(index2, void 0)
684 - );
685 - const getLocation = () => parseHref(entries[index], states[index]);
686 - return createHistory({
687 - getLocation,
688 - getLength: () => entries.length,
689 - pushState: (path, state) => {
690 - if (index < entries.length - 1) {
691 - entries.splice(index + 1);
692 - states.splice(index + 1);
693 - }
694 - states.push(state);
695 - entries.push(path);
696 - index = Math.max(entries.length - 1, 0);
697 - },
698 - replaceState: (path, state) => {
699 - states[index] = state;
700 - entries[index] = path;
701 - },
702 - back: () => {
703 - index = Math.max(index - 1, 0);
704 - },
705 - forward: () => {
706 - index = Math.min(index + 1, entries.length - 1);
707 - },
708 - go: (n) => {
709 - index = Math.min(Math.max(index + n, 0), entries.length - 1);
710 - },
711 - createHref: (path) => path
712 - });
713 -}
714 677 function parseHref(href, state) {
715 678 const hashIndex = href.indexOf("#");
716 679 const searchIndex = href.indexOf("?");
717 680 const addedKey = createRandomKey();
@@ -3987,9 +3950,9 @@
3987 3950 return applyNext(0, search);
3988 3951 }
3989 3952
3990 3953 // node_modules/@tanstack/router-core/dist/esm/link.js
3991 -var preloadWarning = "Error preloading route! ☝️";
3954 +var preloadWarning = "Error preloading route! \u261D\uFE0F";
3992 3955
3993 3956 // node_modules/@tanstack/router-core/dist/esm/route.js
3994 3957 var BaseRoute = class {
3995 3958 constructor(options) {
@@ -5664,9 +5627,8 @@
5664 5627 lock(privateApis, {
5665 5628 // Router creation and setup
5666 5629 createBrowserHistory,
5667 5630 createLazyRoute,
5668 - createMemoryHistory,
5669 5631 createRouter,
5670 5632 createRootRoute,
5671 5633 createRoute,
5672 5634 Outlet,