Skip to content

Conversation

@github-actions
Copy link
Contributor

🤖 I have created a release beep boop

16.0.0 (2024-01-23)

⚠ BREAKING CHANGES

  • node minimum version is now v16.20.1
  • Node.js v14 is not supported.
  • The return type of bulkWrite now includes also void
  • Nested properties after 6 levels of nesting are no longer type checked.
  • Papr is using new internal stricter types for query filters and update
  • Filter and UpdateFilter types are now using the strict counterpart types from mongodb v5.
  • Schemas no longer have a default __v property defined. Users who have migrated from Mongoose or are otherwise taking advantage of this property will have to manually add it to their schema definitions.
  • This changes the produced JSON schema for required oneOf types to correctly include it in the resulting required properties array.
  • Changes the return type for schema and the generic arguments for model and various utils
  • The hook parameters have been merged into a single object parameter.
  • Arrays will no longer default to type (T | undefined)[]
  • Removed undocumented support for a custom model generic type in the model() function.
  • bulkWrite operations types updated to handle defaults for attributes.

Features

Bug Fixes

Performance Improvements

  • Improve update filter types check times (#440) (15d1ba9)

Code Refactoring

  • Perform no-op on bulkWrite when no operations provided (#455) (d56a0f6)
  • Remove custom model type support (#219) (8675ffa)
  • Remove default schema __v version property (86bca4f)
  • Remove node.js v14 support (#464) (935b331)

This PR was generated with Release Please. See documentation.

@avaly avaly force-pushed the main branch 2 times, most recently from 11f9414 to d1e1366 Compare January 23, 2024 16:35
@avaly avaly closed this Jan 23, 2024
@avaly avaly deleted the release-please--branches--main--components--papr branch January 23, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants