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

feat: publish transactional helper #184

Merged
merged 54 commits into from
Apr 13, 2024
Merged

Conversation

Josuto
Copy link
Owner

@Josuto Josuto commented Feb 17, 2024

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 and deleteAll operations to assist developers in the definition of custom transactional operations. Also updated the options 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?

Josuto and others added 11 commits February 16, 2024 10:22
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.
Also added an instance function to demostrate that they have no impact on monguito operations.
@Josuto Josuto changed the title Publish transactional helper feat: publish transactional helper Mar 4, 2024
Josuto and others added 18 commits March 9, 2024 20:38
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
Josuto and others added 25 commits March 20, 2024 00:08
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
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.
@Josuto Josuto merged commit 1fa7e15 into main Apr 13, 2024
10 checks passed
@Josuto Josuto deleted the publish_transactional_helper branch April 13, 2024 10:44
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.

1 participant