Skip to content

Conversation

@slifty
Copy link
Contributor

@slifty slifty commented Jan 16, 2026

This PR takes the final steps for removing 3rd party vendor scripts from our code base.

We've (A) removed some unused code and (B) migrated the deferred pattern to the more modern Promise.withResolvers alongside the use of a polyfill for that to maintain compatibility with older browsers.

This should be merged AFTER #896

Resolves #127

@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

❌ Patch coverage is 12.00000% with 132 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.75%. Comparing base (83f9ced) to head (2322d25).

Files with missing lines Patch % Lines
src/app/core/services/edit/edit.service.ts 0.00% 19 Missing ⚠️
...ponents/file-list-item/file-list-item.component.ts 21.73% 18 Missing ⚠️
.../components/all-archives/all-archives.component.ts 0.00% 16 Missing ⚠️
...le-browser/components/sharing/sharing.component.ts 0.00% 16 Missing ⚠️
...ponents/members-dialog/members-dialog.component.ts 0.00% 14 Missing ⚠️
...connections-dialog/connections-dialog.component.ts 0.00% 9 Missing ⚠️
...omponents/folder-picker/folder-picker.component.ts 0.00% 8 Missing ⚠️
src/app/core/services/upload/upload.service.ts 0.00% 7 Missing ⚠️
...nts/archive-switcher/archive-switcher.component.ts 56.25% 6 Missing and 1 partial ⚠️
src/app/core/components/main/main.component.ts 0.00% 6 Missing ⚠️
... and 3 more
Additional details and impacted files
@@                    Coverage Diff                    @@
##           895-package-bootstrap     #897      +/-   ##
=========================================================
- Coverage                  47.87%   47.75%   -0.13%     
=========================================================
  Files                        351      350       -1     
  Lines                      11292    11294       +2     
  Branches                    1889     1889              
=========================================================
- Hits                        5406     5393      -13     
- Misses                      5694     5711      +17     
+ Partials                     192      190       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@slifty slifty force-pushed the 895-package-bootstrap branch from 5697c84 to dd5550f Compare January 16, 2026 17:29
@slifty slifty force-pushed the 127-remove-vendor branch from b7422b6 to d2fe15e Compare January 16, 2026 17:30
@slifty slifty force-pushed the 895-package-bootstrap branch from dd5550f to 83f9ced Compare January 16, 2026 21:12
This may have been used in the past but currently it isn't. No need to
keep a dead (and stale) dependency in our code.

Issue #127 Use packages instead of vendored code
In the past few years the JS standard added support for `withResolvers`
which obviates the need for a custom implementation of the concept of
a Deferred promise.

This commit moves to that new standard, adds a polyfill so that we can
maintain browser support, and removes our implementation of Deferred.

Issue #127 Use packages instead of vendored code
@slifty slifty force-pushed the 127-remove-vendor branch from d2fe15e to 2322d25 Compare January 16, 2026 21:12
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.

2 participants