WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@c0nst4ntin
Copy link
Collaborator

@c0nst4ntin c0nst4ntin commented Jan 2, 2025

This pull request marks the public methods for bookmarks as @deprecated since the new version (which would be 5.4.0)!
It has to be done, as the field will be removed from the prismic api on February 12 2025 (see #209)

I added tests to ensure the methods will still work without the field beeing present.
They will simply return an empty array (or null, if checked for a specific bookmark).

@c0nst4ntin c0nst4ntin changed the title Mark Bookmark Methods as Deprecated (From Discussions#209) Mark Bookmark Methods as Deprecated (From Discussions #209) Jan 2, 2025
@c0nst4ntin
Copy link
Collaborator Author

@lihbr Please take a look if these changes align with your idea from the discussion or if you see anything wrong with handling this like I did? If you see nothing wrong I would merge this and tag a new version 5.4.0

Copy link
Member

@lihbr lihbr left a comment

Choose a reason for hiding this comment

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

Beautiful! Thank you so much ⭐

@c0nst4ntin c0nst4ntin merged commit a285bdf into prismicio-community:master Jan 2, 2025
3 checks passed
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