-
Notifications
You must be signed in to change notification settings - Fork 2
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: publish transactional helper #184
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Also updated operation options to include transaction options and overrode deleteAll in the NestJS sample repository to perform soft deletion.
BREAKING CHANGE: `SearchOptions` has been renamed to `FindAllOptions` for naming convention purposes
`runInTransaction` now considers the existence of an active session, so that it reuses it instead of starting a new one. This enables transactional operations to run within an already launched transaction.
Also updated NestJS example documentation with new auditable and transactional delete logic.
Results in a version bump.
Also added an instance function to demostrate that they have no impact on monguito operations.
Josuto
changed the title
Publish transactional helper
feat: publish transactional helper
Mar 4, 2024
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](microsoft/TypeScript@v5.3.3...v5.4.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.1 to 7.1.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
…uctor Thus helping developers to correctly specify ther type maps via TS compilation errors in the case of wrong specifications.
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
fix: change AudioBookType base type to be BookType
Support abstract supertype for custom repository type map definition
…directs-1.15.6 chore(deps): bump follow-redirects from 1.15.4 to 1.15.6
…nestjs-mongoose-book-manager/follow-redirects-1.15.6 chore(deps): bump follow-redirects from 1.15.4 to 1.15.6 in /examples/nestjs-mongoose-book-manager
…t-5.4.2 chore(deps-dev): bump typescript from 5.3.3 to 5.4.2
…t-eslint/parser-7.1.1 chore(deps-dev): bump @typescript-eslint/parser from 7.0.1 to 7.1.1
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.0.1 to 7.2.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.2.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
…t-eslint/eslint-plugin-7.2.0 chore(deps-dev): bump @typescript-eslint/eslint-plugin from 7.0.1 to 7.2.0
It seems that NestJS is does not support ESM (ECMA Script Modules) just yet. Thus, the module specification must be CommonJS.
fix: add types to exports at package.json
Update dependencies
feat: add find one operation
Also updated some JSDoc descriptions.
refactor: perform code and documentation optimisations and amends
Also updated operation options to include transaction options and overrode deleteAll in the NestJS sample repository to perform soft deletion.
BREAKING CHANGE: `SearchOptions` has been renamed to `FindAllOptions` for naming convention purposes
`runInTransaction` now considers the existence of an active session, so that it reuses it instead of starting a new one. This enables transactional operations to run within an already launched transaction.
Also updated NestJS example documentation with new auditable and transactional delete logic.
Required to test update operation.
…uto/monguito into publish_transactional_helper
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of this pull request?
Put an "X" next to item:
[ ] Documentation update
[ ] Bug fix
[x] New feature
[ ] Other, please explain:
What changes did you make?
Release the transactional helper used by the
saveAll
anddeleteAll
operations to assist developers in the definition of custom transactional operations. Also updated theoptions
parameter of both basic and transactional CRUD operations to enable their reuse in such custom operations.Which issue (if any) does this pull request address?
Is there anything you'd like reviewers to focus on?