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

Mark Bookmark Methods as Deprecated (From Discussions #209) #210

Merged

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