Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade to masto.js v6 #2530

Merged
merged 4 commits into from
Jan 9, 2024
Merged

feat: upgrade to masto.js v6 #2530

merged 4 commits into from
Jan 9, 2024

Conversation

patak-dev
Copy link
Member

Check out the migration guide to see what's new in masto.js v6

The new rest API is quite nice (most of the changes in the PR are related to it). And the way streaming works also changed significantly. As far as I can tell, everything is working as expected (except for search, see neet/masto.js#1018. Pushing the PR as a draft until the fixes for are available as a new release).

Copy link

stackblitz bot commented Dec 26, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Dec 26, 2023

Deploy Preview for elk-docs canceled.

Name Link
🔨 Latest commit 8b84856
🔍 Latest deploy log https://app.netlify.com/sites/elk-docs/deploys/658c5223a35e480008d08575

Copy link

netlify bot commented Dec 26, 2023

Deploy Preview for elk-zone ready!

Name Link
🔨 Latest commit 8b84856
🔍 Latest deploy log https://app.netlify.com/sites/elk-zone/deploys/658c5223b1d6ac0008c2a2e6
😎 Deploy Preview https://deploy-preview-2530--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@patak-dev patak-dev added the c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs label Dec 26, 2023
Copy link
Member

@Shinigami92 Shinigami92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally LGTM

components/account/AccountHeader.vue Show resolved Hide resolved
components/notification/NotificationCard.vue Show resolved Hide resolved
@userquin
Copy link
Member

We need to review types and logic in service-worker (@patak-dev I've sent you private DM in discord)

@patak-dev
Copy link
Member Author

We need to review types and logic in service-worker (@patak-dev I've sent you private DM in discord)

The line you shared in Discord seems ok after the upgrade as it is a direct call. It doesn't use masto. If you could check anyways that things looks good on the service-worker/pwa side after this PR, appreciated!

@userquin userquin self-requested a review December 26, 2023 20:03
@userquin
Copy link
Member

@patak-dev it seems to be fine:

imagen

Copy link
Member

@userquin userquin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sw logic seems to be fine

@patak-dev patak-dev marked this pull request as ready for review December 27, 2023 05:58
@patak-dev
Copy link
Member Author

Search is fixed now. Tests are failing because of a type error on AbortSignal.timeout, but I think it may be an issue with Vitest? Node 18 should have that function

@patak-dev
Copy link
Member Author

Search is fixed now. Tests are failing because of a type error on AbortSignal.timeout, but I think it may be an issue with Vitest? Node 18 should have that function

Fixed this one by polyfilling AbortSignal.timeout during test setup.

I think we should be good to go now.

@patak-dev
Copy link
Member Author

Let's merge this one so we try it out in https://main.elk.zone

@patak-dev patak-dev added this pull request to the merge queue Jan 9, 2024
Merged via the queue into main with commit 6c5bb83 Jan 9, 2024
15 checks passed
@patak-dev patak-dev deleted the feat/masto-js-6 branch January 9, 2024 08:58
@shuuji3
Copy link
Member

shuuji3 commented Jan 17, 2024

Thanks for this upgrade. I can proceed #2301 with this new version. 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants