Repository navigation
π¨οΈπ³ππ£π οΈπ§βπ«πποΈβοΈπ€οΈποΈπΌπ€π§°π¦β¨οΈππ§©π¨πππͺ¨ππππΎβοΈπ₯οΈ: prune dead packages, code and deps - #1890
Merged
Conversation
β¦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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.lockdrops ~400 entries).lively.traits,lively.keyboard,lively.changesets,lively.collabpackage.json,lively.installer/packages-config.json,lively.server/plugins/dav.js,lively.server/scripts/build-library-snapshot.cjs,conf.json, andscripts/test.sh. Removedlively.collabboot/UI hooks while extendinglively.morphic/object-migration.jsto strip legacymorphCommentMap/lively.collabobjects on snapshot load. Updatedscripts/tests_for_branch.shto skip deleted package directories. (Note:lively.contextis intentionally untouched due to in-flight debugger work.)lively.morphic/assets/globe-textures/(8.5 MiB),lively.components/webgl-canvas.js,three, 10 unusedlively.morphiclogo/spinner assets,lively.ide/assets/color-wheel.png, two.DS_Storefileslively.morphic/assets/favicon.ico,lively.morphic/assets/lively-web-logo-small.svg(used by desktop smoke tests), andlively.morphic/lively-next-logo.svg.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}/}lively.components/popup.cp.js(#1839),lively.components/widgets.jsDropDownSelector(#1857),lively.morphic/tools/build-source-bundle.js(rollup-build-test.cjs), andlively.lang/worker.js(package-resolution-test.cjs).visitBlockStatement(lively.ast), unusedPathimport inlively.classes/util.js, skipped LK tests (lively.bindings), commented 477-line LK test (lively.components/tests/list-test.js), deadSlider/htmlExport_transformNode(lively.components), unreachable code & duplicateprepareGlobal(lively.freezer/src/util/runtime.js), 550 commented lines inlively.ide/shell/git.js, deadlively.transpilerfunctions (lively.modules/src/instrumentation.js), commentedObjectGraphVisualizer& live no-op__isBeingSerialized__plugins (lively.serializer2), dead pre-freezer methods (lively.server/plugins/world-loading.js), deadbabel-standalonehelpers &ensureModuleMetaForComponentDefinition(lively.source-transform)ensureFetch()as a no-op export inlively.resources/index.jsso existing callers remain compatible withoutfetch-ponyfill.build.jsscripts across 11 packages; removed@babel/standalone,babel-standalone,babel-core6,babel-regenerator-runtime,brotli(plustrustedDependenciesand 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; regeneratedbun.lockwith Bun 1.4.2lively.morphic'srollup: 2.80.0(used byrollup-build-test.cjs) andpepjs.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.classesruntime build, SWC plugin, loading-screen bundle): passednative-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.shacross all 22 remaining packages: 2,274 passed, 0 failed (20 skipped)./scripts/check-boot.sh(offline boot check): passedjsdoc -c conf.json -R README.md: passed