Repository navigation
Migrate Bluesky package to use smaller atcute dependencies - #261
Conversation
🦋 Changeset detectedLatest commit: ba0fcde The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for astro-embed ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Also moved from a shared variable to direct versioning in the workflow file so that Renovate can take care of updating it.
|
I think if we do this as a major then it's fine. I've switch most things to use atcute, and will probably move the loader too. |
|
Great to know — thanks! I’ll refresh my memory of the PR and make sure the changelog’s describe the change in detail. |
✅ Deploy Preview for astro-embed ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Avoids pulling in the latest lexicon relases that depend on `@atcute/util-text` which has seen a large size increase, see mary-ext/atcute#72
|
@ascorbic I’m going to release this before I forget about it. LMK if you need any guidance for the Bluesky loader — I think it should continue to work fine, it’ll only be type checking that might cause issues for people. |
This PR migrates the
<Bluesky>component to use packages from https://github.com/mary-ext/atcute instead of the official@atproto/apipackage.@atproto/api’s latest release has an install size of 14 MB (we’re currently using an older version that’s “just” 10 MB), which is pretty crazy for an API client.atcute makes it easier to pick and choose the packages you actually need and has the aim of being lighter weight in general. The packages used in this PR have an install size of 3.4 MB, which is 33% of our current size and 25% of the latest
@atproto/api. That still feels pretty huge to me if I’m being honest, but it’s still a big improvement.Opening as a draft to solicit feedback — especially from @ascorbic as it may cause type compatibility issues with his Bluesky Astro loader.