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: support for mongoose v8 #1241

Merged
merged 11 commits into from
Jan 22, 2025
Merged

feat: support for mongoose v8 #1241

merged 11 commits into from
Jan 22, 2025

Conversation

DayTF
Copy link
Contributor

@DayTF DayTF commented Jan 14, 2025

Definition of Done

General

  • Write an explicit title for the Pull Request, following Conventional Commits specification
  • Test manually the implemented changes
  • Validate the code quality (indentation, syntax, style, simplicity, readability)

Security

  • Consider the security impact of the changes made

static readonly ObjectIdTypeName: 'ObjectId' | 'ObjectID' = mongoose.version.startsWith('6')
? 'ObjectID'
: 'ObjectId';
static readonly ObjectIdTypeName = dynamicSchema.paths.objectId.instance;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that seems cleaner ! :)

@realSpok realSpok changed the title feat: test support for mongoose v8 feat: support for mongoose v8 Jan 20, 2025
Copy link
Contributor

@realSpok realSpok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ✅ PR title

  • ✅ PR linked to the clickup task

  • ✅ The PR tackle one subject only

  • ✅ Destination branch

  • ✅ Code review

    • ✅ Use pure functions when possible
    • ✅ Performance concerns
    • ✅ Security concerns
    • ✅ Check that nothing introduces a breaking change, including the types
  • ✅ Automatic tests

    • ✅ Unit tests
    • ✅ Integration tests
  • ✅ Manual tests

    • ✅ Test the functionality
    • ⤬ Test error cases

Copy link

codeclimate bot commented Jan 22, 2025

Code Climate has analyzed commit b412ee3 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (98% is the threshold).

This pull request will bring the total coverage in the repository to 97.2%.

View more on Code Climate.

@arnaud-moncel
Copy link
Member

🚀

@DayTF DayTF merged commit ae0164d into main Jan 22, 2025
22 checks passed
@DayTF DayTF deleted the feat/mongoose-v8 branch January 22, 2025 15:35
forest-bot added a commit that referenced this pull request Jan 22, 2025
# @forestadmin/datasource-mongo [1.4.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-22)

### Features

* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))

### Dependencies

* **@forestadmin/datasource-mongoose:** upgraded to 1.9.0
forest-bot added a commit that referenced this pull request Jan 22, 2025
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.4.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.13.0 🎉

The release is available on [email protected]

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.9.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.12.18 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Jan 23, 2025
## [1.58.1](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-23)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 23, 2025
# [1.61.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-23)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 23, 2025
## [1.1.47](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-23)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 23, 2025
## [1.5.12](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-23)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 23, 2025
## [1.4.15](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-23)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 23, 2025
## [1.1.21](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-23)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 23, 2025
## [1.4.5](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-23)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
@forest-bot
Copy link
Member

🎉 This PR is included in version 1.58.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.61.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.1.47 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.5.12 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.4.15 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.1.21 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@forest-bot
Copy link
Member

🎉 This PR is included in version 1.4.5 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

forest-bot added a commit that referenced this pull request Jan 28, 2025
## [1.11.6](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-28)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))
* do not override view default sorting ordrer ([#1245](#1245)) ([8e27769](8e27769))
* **lazy join:** do not remove foreignkey when they are asking ([#1246](#1246)) ([621b243](621b243))
* **validator:** allow null value for Equal operator ([#1250](#1250)) ([5d4cf3e](5d4cf3e))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 28, 2025
## [1.16.6](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-28)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))
* do not override view default sorting ordrer ([#1245](#1245)) ([8e27769](8e27769))
* **lazy join:** do not remove foreignkey when they are asking ([#1246](#1246)) ([621b243](621b243))
* **validator:** allow null value for Equal operator ([#1250](#1250)) ([5d4cf3e](5d4cf3e))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 28, 2025
## [1.47.1](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-28)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))
* do not override view default sorting ordrer ([#1245](#1245)) ([8e27769](8e27769))
* **lazy join:** do not remove foreignkey when they are asking ([#1246](#1246)) ([621b243](621b243))
* **validator:** allow null value for Equal operator ([#1250](#1250)) ([5d4cf3e](5d4cf3e))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
forest-bot added a commit that referenced this pull request Jan 28, 2025
## [1.36.5](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/[email protected]...@forestadmin/[email protected]) (2025-01-28)

### Bug Fixes

* **datasource mongo:** remove useless version manager ([#1244](#1244)) ([fbb6698](fbb6698))
* do not override view default sorting ordrer ([#1245](#1245)) ([8e27769](8e27769))
* **lazy join:** do not remove foreignkey when they are asking ([#1246](#1246)) ([621b243](621b243))
* **validator:** allow null value for Equal operator ([#1250](#1250)) ([5d4cf3e](5d4cf3e))

### Features

* add lazy join decorator ([#1240](#1240)) ([1b6b248](1b6b248))
* support for mongoose v8 ([#1241](#1241)) ([ae0164d](ae0164d))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants