Skip to content

πŸ—¨οΈπŸŒ³πŸŽ€πŸ”£πŸ› οΈπŸ§‘β€πŸ«πŸ’­πŸŽ›οΈβ„οΈπŸ›€οΈπŸ–ŒοΈπŸ‘ΌπŸ€•πŸ§°πŸ“¦βŒ¨οΈπŸ“™πŸ§©πŸŽ¨πŸ””πŸ“‚πŸͺ¨πŸ“‡πŸ‘”πŸ”πŸ’Ύβš™οΈπŸ–₯️: prune dead packages, code and deps - #1890

Merged
merryman merged 2 commits into
mainfrom
prune/dead-packages-and-legacy-code
Dec 2, 2026

Conversation

@merryman

@merryman merryman commented Dec 1, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up pruning pass on top of #1887 and #1889 removing four retired workspace packages, ~8.7 MiB of dead tracked assets, ~22,800 lines of dead/legacy files and commented-out LivelyKernel code, and obsolete dependencies (bun.lock drops ~400 entries).

Category Removed Notes
Retired packages (54 files, ~4.3k LOC) lively.traits, lively.keyboard, lively.changesets, lively.collab Updated package.json, lively.installer/packages-config.json, lively.server/plugins/dav.js, lively.server/scripts/build-library-snapshot.cjs, conf.json, and scripts/test.sh. Removed lively.collab boot/UI hooks while extending lively.morphic/object-migration.js to strip legacy morphCommentMap / lively.collab objects on snapshot load. Updated scripts/tests_for_branch.sh to skip deleted package directories. (Note: lively.context is intentionally untouched due to in-flight debugger work.)
Dead globe demo & assets (~8.7 MiB) lively.morphic/assets/globe-textures/ (8.5 MiB), lively.components/webgl-canvas.js, three, 10 unused lively.morphic logo/spinner assets, lively.ide/assets/color-wheel.png, two .DS_Store files Kept lively.morphic/assets/favicon.ico, lively.morphic/assets/lively-web-logo-small.svg (used by desktop smoke tests), and lively.morphic/lively-next-logo.svg.
Dead/broken standalone files & docs lively.2lively/{discussion.js,tests/user-integration-test.js}, lively.app/VELOPACK_SPIKE.md, lively.ast/{lib/acorn-decorators.cjs,notes.md,tools/visitor-update.js,tests/*helper.js}, lively.bindings/bindings-profiler.js, lively.components/{charts.js,iframe.js,popup.js}, lively.freezer/{SWC_*.md,QUICKSTART_SWC.md,swc-plugin/FIXES_NEEDED.md,src/plugins/{rollup-swc,esbuild}.js,examples/,tools/run-swc-example.sh,src/util/{snapshot-module,node-fs-wrapper}.js,.swcrc,tests/bundle-test.js}, lively.git/js-keygen/{pkcs1To8,publicSshToPem}.js, lively.graphics/convert-css-length.js, lively.halos/helper.js, lively.headless/subserver.js, lively.ide/{version-control,value-widgets,worker-init,studio/connections-tree,md/modifier,shell/commands,jsx/generator}.js, lively.ide/tests/{diff/patch,shell/git}-test.js, lively.installer/{bin/,build.sh,package-status.js,status.js,web-install.sh,git-repo.js,package.js,helpers.js,packages/create-new-package.js,tests/test.js}, scripts/{git-status.js,git-status.sh,run-module-from-shell.sh}, lively.lang/{btree.js,text-graphics.js,tests/btree-test.js,TODO.md}, lively.modules/{tools/,.npmignore,CHANGELOG.md,doc/}, lively.morphic/{worlds/default.json,web/,old-lively-helpers.js,nodejs-morphic-helpers.js,events.html,examples/,tests/text/snippets-test.js}, lively.resources/src/{l2l,s3}-resource.js, lively.serializer2/plugins/expression-compressor.js, lively.server/{plugins/{pdf-printer,discussion}.js,run-tests.js}, lively.source-transform/babel/scopes.js, lively.vm/{index.html,examples/,tests/helper.js,tests/test-resources/{cjs,es6,es6-with-cjs}/} Kept lively.components/popup.cp.js (#1839), lively.components/widgets.js DropDownSelector (#1857), lively.morphic/tools/build-source-bundle.js (rollup-build-test.cjs), and lively.lang/worker.js (package-resolution-test.cjs).
In-file dead code & commented LivelyKernel blocks Duplicate visitBlockStatement (lively.ast), unused Path import in lively.classes/util.js, skipped LK tests (lively.bindings), commented 477-line LK test (lively.components/tests/list-test.js), dead Slider/htmlExport_transformNode (lively.components), unreachable code & duplicate prepareGlobal (lively.freezer/src/util/runtime.js), 550 commented lines in lively.ide/shell/git.js, dead lively.transpiler functions (lively.modules/src/instrumentation.js), commented ObjectGraphVisualizer & live no-op __isBeingSerialized__ plugins (lively.serializer2), dead pre-freezer methods (lively.server/plugins/world-loading.js), dead babel-standalone helpers & ensureModuleMetaForComponentDefinition (lively.source-transform) Preserved ensureFetch() as a no-op export in lively.resources/index.js so existing callers remain compatible without fetch-ponyfill.
Obsolete build scripts & dependencies Deleted broken CJS Rollup 0.36 / Babel 6 build.js scripts across 11 packages; removed @babel/standalone, babel-standalone, babel-core 6, babel-regenerator-runtime, brotli (plus trustedDependencies and Windows native check), escodegen, fetch-ponyfill, svg-intersections, prettier, three, uglify-es, webfontloader, vdom-parser, virtual-dom, web-animations-js, wasm-brotli, @babel/cli, @babel/plugin-transform-runtime, @babel/plugin-syntax-import-meta, @rollup/pluginutils, @rollup/rollup-*, duplicate/stale installer & dev dependencies; regenerated bun.lock with Bun 1.4.2 Kept lively.morphic's rollup: 2.80.0 (used by rollup-build-test.cjs) and pepjs.

Testing

Ran with exact CI toolchain (node v24.20.0, bun 1.4.2):

  • ./install.sh --no-desktop (frozen lockfile, partsbin seed, all 28 browser import maps, lively.classes runtime build, SWC plugin, loading-screen bundle): passed
  • All 20 CI migration/native/desktop/commit-message regression tests (native-resolver-test.mjs, native-system-live-test.mjs, parser-bootstrap-test.mjs, package-resolution-test.cjs, dynamic-system-import-test.mjs, swc-state-test.mjs, minify-test.cjs, project-bundle-test.mjs, browser-import-map-cache-test.mjs, source-hashes-test.mjs, test-startup-parallelism.mjs, test-desktop-smoke.mjs, package-install-test.mjs, runtime-roots-test.mjs, rollup-build-test.cjs, test-package-payload.mjs, test-downloads.mjs, test-desktop-resources.mjs, test-windows-dependency-layout.mjs, pr-commit-message-test.cjs): all passed
  • ./scripts/test.sh across all 22 remaining packages: 2,274 passed, 0 failed (20 skipped)
  • ./scripts/check-boot.sh (offline boot check): passed
  • jsdoc -c conf.json -R README.md: passed

…d deps

Retire four unused/superseded workspace packages, remove ~8.7 MB of dead
tracked assets and ~22,800 lines of obsolete files, legacy Rollup 0.36 /
Babel 6 build scripts, and dead dependencies across the monorepo.

- Retire `lively.traits`, `lively.keyboard`, `lively.changesets` (and its
  sole broken consumer `lively.ide/version-control.js`), and `lively.collab`
  (removing its eager boot imports and cross-package hooks while preserving
  snapshot migration cleanup in `lively.morphic/object-migration.js`).
- Remove orphaned 3D globe demo (`lively.components/webgl-canvas.js`,
  `three`, and 8.5 MiB of 4K textures in `lively.morphic/assets/globe-textures/`).
- Remove dead/broken standalone files, legacy Rollup 0.36 / Babel 6 build
  scripts, outdated AI SWC scaffolding docs, `.DS_Store` binaries, and
  hundreds of lines of commented-out LivelyKernel tests/code.
- Remove unused workspace dependencies (`@babel/standalone`, `babel-standalone`,
  `babel-core` 6, `babel-regenerator-runtime`, `brotli`, `escodegen`,
  `fetch-ponyfill`, `svg-intersections`, `prettier`, `three`, `uglify-es`,
  `webfontloader`, `vdom-parser`, `virtual-dom`, `web-animations-js`,
  `wasm-brotli`, `@babel/cli`, `@babel/plugin-transform-runtime`,
  `@babel/plugin-syntax-import-meta`, `@rollup/pluginutils`,
  `@rollup/rollup-*`, and ~100 obsolete Babel 6/Rollup 0.36 devDependencies)
  and refresh `bun.lock` with Bun 1.4.2.
- Drop retired and 0-test packages from `scripts/test.sh` and filter
  deleted package directories in `scripts/tests_for_branch.sh`.
In NW.js's `--enable-node-worker` on Windows, Node's undici `fetch`
leaves `response.arrayBuffer()` permanently pending on concurrent
`ga.jspm.io` responses after headers arrive, and Chromium's cross-realm
`AbortSignal.timeout()` does not abort it. Because `@jspm/generator`
2.18.1 moved from `node-fetch` (`node:https`) to `@jspm/fetch`
(`globalThis.fetch`), project creation on Windows stalled inside
`generateImportMapForPackage`, timed out the 30s `evalOnServer` call
before `registry.addPackageAt`, and failed the Windows desktop smoke
test when switching the browser to the remote backend.

- Add `nodeHttpFetch` in `lively.server/plugins/lib-lookup.js` using
  `node:http`/`node:https`, `node:zlib`, and `node:timers` timeouts,
  and wire it into `@jspm/generator` (`setFetch`) and
  `findUnavailableJspmPackages` when running under NW.js.
- Allow passing `options` (including `promiseTimeout`) through
  `evalOnServer` and verify package registration in
  `addProjectPackageOnServerIfMissing`.
- Add unit tests in `lively.server/tests/browser-import-map-cache-test.mjs`
  and a concurrent Brotli native-worker check in
  `lively.app/scripts/test-native-backend.mjs`.
@merryman
merryman merged commit bb178d5 into main Dec 2, 2026
18 of 19 checks passed
@merryman
merryman deleted the prune/dead-packages-and-legacy-code branch December 2, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant