@aglyn/shared-util-vendor 1.0.0-beta.215 → 1.0.0-beta.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +5 -6
- package/src/index.js.map +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -41,12 +41,11 @@
|
|
|
41
41
|
// The four real consumers, and where each puts the matcher:
|
|
42
42
|
// - `use-mdi-icons-fuzzy` → the icon picker, console-only,
|
|
43
43
|
// - `media-search.ts` → the console DAM,
|
|
44
|
-
// - `plugins-mui/collection.tsx` →
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
// a split of that plugin's component registry takes it off those pages,
|
|
44
|
+
// - `plugins-mui/collection-search-box.tsx` → a published page, but only
|
|
45
|
+
// once a reader types into a collection search box: the element
|
|
46
|
+
// `import()`s the matcher on the first keystroke (AGL-3401). It used to arrive with every
|
|
47
|
+
// page that placed any collection element (25.9 KB raw, AGL-3082), and
|
|
48
|
+
// before the registry split, with every page at all,
|
|
50
49
|
// - `apps/tenant/utils/search-content.ts` → tenant, but SERVER-only: it
|
|
51
50
|
// imports `@aglyn/aglyn/server` and `tenant-data-admin`, and
|
|
52
51
|
// `search-facets.ts` exists precisely so the `'use client'` results page
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../libs/shared/util/vendor/src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/change-case'\n// deep-equal is NOT re-exported (AGL-2682), the same removal as\n// `platform-identification` below and by far the most expensive of the three.\n// `deep-equal` is an es-shim package: it reaches `object-inspect`,\n// `get-intrinsic`, `object-keys`, `es-get-iterator` and 47 more, and every\n// one of them rode this line onto every published customer page. Measured on\n// `aglyn.com/solutions/small-business` from the production source maps:\n// **51 packages, 47.6 KB raw**, in a chunk no visitor executes.\n//\n// It also explains a Lighthouse finding that looked like ours and was not.\n// The \"Legacy JavaScript — `Object.assign` / `Object.is` / `Object.keys`\n// shims\" charged against `42sr79qh0v5oi.js` is `object.assign`, `object-is`\n// and `object-keys` — members of THIS tree, not polyfills Next emitted for a\n// stale browserslist, and no browserslist setting would have moved them.\n//\n// The one consumer is `apps/console/components/theme-editor`, which is\n// console-only and now takes the deep import. Still importable as\n// `@aglyn/shared-util-vendor/deep-equal`.\n// fuse is NOT re-exported (AGL-2486), for the reason recorded below for\n// `platform-identification` and measured the same way. `export *` here put\n// `fuse.js` in front of every file that takes anything at all from this\n// index — ten of them in the published page's eager graph, mostly for\n// `hoistNonReactStatics` — so a matcher no visitor runs was downloaded and\n// parsed by every visitor to every customer site.\n//\n// The four real consumers, and where each puts the matcher:\n// - `use-mdi-icons-fuzzy` → the icon picker, console-only,\n// - `media-search.ts` → the console DAM,\n// - `plugins-mui/collection.tsx` →
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/shared/util/vendor/src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/change-case'\n// deep-equal is NOT re-exported (AGL-2682), the same removal as\n// `platform-identification` below and by far the most expensive of the three.\n// `deep-equal` is an es-shim package: it reaches `object-inspect`,\n// `get-intrinsic`, `object-keys`, `es-get-iterator` and 47 more, and every\n// one of them rode this line onto every published customer page. Measured on\n// `aglyn.com/solutions/small-business` from the production source maps:\n// **51 packages, 47.6 KB raw**, in a chunk no visitor executes.\n//\n// It also explains a Lighthouse finding that looked like ours and was not.\n// The \"Legacy JavaScript — `Object.assign` / `Object.is` / `Object.keys`\n// shims\" charged against `42sr79qh0v5oi.js` is `object.assign`, `object-is`\n// and `object-keys` — members of THIS tree, not polyfills Next emitted for a\n// stale browserslist, and no browserslist setting would have moved them.\n//\n// The one consumer is `apps/console/components/theme-editor`, which is\n// console-only and now takes the deep import. Still importable as\n// `@aglyn/shared-util-vendor/deep-equal`.\n// fuse is NOT re-exported (AGL-2486), for the reason recorded below for\n// `platform-identification` and measured the same way. `export *` here put\n// `fuse.js` in front of every file that takes anything at all from this\n// index — ten of them in the published page's eager graph, mostly for\n// `hoistNonReactStatics` — so a matcher no visitor runs was downloaded and\n// parsed by every visitor to every customer site.\n//\n// The four real consumers, and where each puts the matcher:\n// - `use-mdi-icons-fuzzy` → the icon picker, console-only,\n// - `media-search.ts` → the console DAM,\n// - `plugins-mui/collection-search-box.tsx` → a published page, but only\n// once a reader types into a collection search box: the element\n// `import()`s the matcher on the first keystroke (AGL-3401). It used to arrive with every\n// page that placed any collection element (25.9 KB raw, AGL-3082), and\n// before the registry split, with every page at all,\n// - `apps/tenant/utils/search-content.ts` → tenant, but SERVER-only: it\n// imports `@aglyn/aglyn/server` and `tenant-data-admin`, and\n// `search-facets.ts` exists precisely so the `'use client'` results page\n// never value-imports it. Fuse runs on the server for `/search` and has\n// never been shipped to that page's browser.\n//\n// Worth stating plainly, because it is the trap this change was nearly lost\n// to: dropping the `use-mdi-icons-fuzzy` re-export from the shared-ui-jsx\n// barrel — the obvious fix, and the one the audit named — removes ZERO\n// packages on its own. Measured: 30 packages before, 30 after, with `fuse.js`\n// still \"first reached from libs/shared/util/vendor/src/lib/fuse.ts\". THIS\n// line was the live edge the whole time. Still importable as\n// `@aglyn/shared-util-vendor/fuse`.\nexport * from './lib/hoist-non-react-statics'\n// mitt is NOT re-exported (AGL-2682), same treatment as `platform-identification`\n// below and for the same reason: NOTHING in the repo reads `Mitt` — not an app,\n// not a plugin, not a tool — so the only thing this line did was put `mitt` in\n// front of every file that takes anything at all from this index. Aglyn's own\n// event bus is `EmitManager` (eventemitter2), which is what the runtime\n// actually uses. Still importable as `@aglyn/shared-util-vendor/mitt-emitter`.\nexport * from './lib/object-deep-merge'\n// object-deep-fill-in is NOT re-exported (AGL-2682). It was a second package\n// (`mout`) inside `object-deep-merge`, whose OTHER export the host theme calls\n// on every published page — so `mout` was emitted to every visitor of every\n// customer site for a function nothing calls. Split out rather than deleted,\n// and importable as `@aglyn/shared-util-vendor/object-deep-fill-in`.\n// object-flatten is NOT re-exported (AGL-2682). Its one consumer,\n// `element-styles-form.component.tsx`, is the besigner's styles panel —\n// console-only — and it now takes the subpath. `flat` was never emitted to a\n// published page (Turbopack shakes it), so this is graph hygiene rather than\n// bytes: it keeps the allowlist honest about what a tenant page can reach, so\n// the NEXT import of anything from this index cannot quietly ship a flattener.\n// Still importable as `@aglyn/shared-util-vendor/object-flatten`.\n// platform-identification is NOT re-exported (AGL-2486). Nothing in the repo\n// imports it — not the apps, not a plugin, not a tool — so its only effect\n// was that every file taking anything at all from this index (and there are\n// ten in the published page's eager graph alone, mostly for\n// `hoistNonReactStatics`) also pulled in the `platform` UA-parsing package.\n// Measured at -4.7 KB gz off the eager barrel graph. Still importable as\n// `@aglyn/shared-util-vendor/platform-identification`.\n// uid-alphabets is NOT re-exported (AGL-2682), the same shape as\n// `object-deep-fill-in`: `nanoid-dictionary` was a second package inside\n// `unique-identification`, whose `createUid` the loading context and\n// `createResourceUid` do call on every published page. Split out rather than\n// deleted, and importable as `@aglyn/shared-util-vendor/uid-alphabets`.\nexport * from './lib/unique-identification'\n// use-debounce is NOT re-exported (AGL-2682), same shape as `object-flatten`\n// above. Its one consumer is `icon-select.component.tsx` — the icon picker,\n// console-only — which now takes the subpath. Note that a page-side debounce\n// already exists and is unrelated: `@aglyn/shared-ui-jsx`'s own `useDebounce`\n// is built on lodash-es, which the tenant page carries anyway. Still importable\n// as `@aglyn/shared-util-vendor/use-debounce`.\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,cAAc,uBAAmB;AACjC,gEAAgE;AAChE,8EAA8E;AAC9E,mEAAmE;AACnE,2EAA2E;AAC3E,6EAA6E;AAC7E,wEAAwE;AACxE,gEAAgE;AAChE,EAAE;AACF,2EAA2E;AAC3E,yEAAyE;AACzE,4EAA4E;AAC5E,6EAA6E;AAC7E,yEAAyE;AACzE,EAAE;AACF,uEAAuE;AACvE,kEAAkE;AAClE,0CAA0C;AAC1C,wEAAwE;AACxE,2EAA2E;AAC3E,wEAAwE;AACxE,sEAAsE;AACtE,2EAA2E;AAC3E,kDAAkD;AAClD,EAAE;AACF,4DAA4D;AAC5D,6DAA6D;AAC7D,2CAA2C;AAC3C,2EAA2E;AAC3E,oEAAoE;AACpE,8FAA8F;AAC9F,2EAA2E;AAC3E,yDAAyD;AACzD,0EAA0E;AAC1E,iEAAiE;AACjE,6EAA6E;AAC7E,4EAA4E;AAC5E,iDAAiD;AACjD,EAAE;AACF,4EAA4E;AAC5E,0EAA0E;AAC1E,uEAAuE;AACvE,8EAA8E;AAC9E,2EAA2E;AAC3E,6DAA6D;AAC7D,oCAAoC;AACpC,cAAc,mCAA+B;AAC7C,kFAAkF;AAClF,gFAAgF;AAChF,+EAA+E;AAC/E,8EAA8E;AAC9E,wEAAwE;AACxE,+EAA+E;AAC/E,cAAc,6BAAyB;AACvC,6EAA6E;AAC7E,+EAA+E;AAC/E,4EAA4E;AAC5E,6EAA6E;AAC7E,qEAAqE;AACrE,kEAAkE;AAClE,wEAAwE;AACxE,6EAA6E;AAC7E,6EAA6E;AAC7E,8EAA8E;AAC9E,+EAA+E;AAC/E,kEAAkE;AAClE,6EAA6E;AAC7E,2EAA2E;AAC3E,4EAA4E;AAC5E,4DAA4D;AAC5D,4EAA4E;AAC5E,yEAAyE;AACzE,uDAAuD;AACvD,iEAAiE;AACjE,yEAAyE;AACzE,qEAAqE;AACrE,6EAA6E;AAC7E,wEAAwE;AACxE,cAAc,iCAA6B,CAC3C,6EAA6E;CAC7E,4EAA4E;CAC5E,6EAA6E;CAC7E,8EAA8E;CAC9E,gFAAgF;CAChF,+CAA+C"}
|