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

chore(main): Release 15.0.0 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

github-actions[bot]
Copy link

🤖 I have created a release beep boop

15.0.0 (2023-07-29)

⚠ BREAKING CHANGES

  • 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.
  • schema() generic types have changed.
  • TypeScript types have changed - now using the embedded types from mongodb package.

Features

Bug Fixes

  • Allow explicit optional types on schemas (#207) (716dbb4)
  • Apply defaults in bulkWrite updateOne operations (#41) (ee84388)
  • bump minimist from 1.2.5 to 1.2.6 (#180) (b9d5cea)
  • bump node-fetch from 2.6.1 to 2.6.7 (cb25d05)
  • bump normalize-url from 4.5.0 to 4.5.1 (ebd58c2)
  • bump path-parse from 1.0.6 to 1.0.7 (e85b312)
  • bump prismjs from 1.23.0 to 1.25.0 (682db15)
  • bump prismjs from 1.25.0 to 1.27.0 (7c0d1d2)
  • bump shelljs from 0.8.4 to 0.8.5 (#149) (2ee4a30)
  • bump tmpl from 1.0.4 to 1.0.5 (5907415)
  • bump trim-off-newlines from 1.0.1 to 1.0.3 (#152) (6ed3ccd)
  • bump ws from 7.4.5 to 7.5.5 (4962e37)
  • Correct oneOf required option (a24054f)
  • Correct TimestampSchema ternary in DocumentForInsert (#277) (7e8d750)
  • Customisable Hook context type (#258) (26d4628)
  • Customize benchmark db name via CLI arg (#32) (a159933)
  • Customize mongo URL in benchmark tool (#19) (2cfac08)
  • ESM build with file extensions (#122) (b81a6de)
  • Filter defaults in bulkWrite to avoid conflicts (#42) (28d3fb4)
  • Fix insert and projection types (#72) (344abab)
  • Improve defaults type at schema declaration (#178) (efa5d92)
  • Require mongodb >=v4.1.1 (125d928)
  • Support custom dates in insert operations (afe201a)
  • Support enum type with array of const values (#133) (f39003f)
  • Update sed command for macOS (#234) (0b6c476)
  • Upgrade mongodb to v4.11.0 (#343) (f7db8b7)
  • Upgrade mongodb to v4.9.0 (#292) (64de742)
  • Upgrade mongodb to v4.9.1 (#304) (cc2e975)
  • Upgrade typescript to v4.8.2 (#300) (fd3ee59)
  • Use Record for objectGeneric type (#274) (59f3664)
  • Use returnDocument instead of returnOriginal (#7) (bbbb651)
  • Util getIds accepts readonly structures (#381) (940d519)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

0 participants