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

Bump knex from 2.4.0 to 2.4.1 #90

Merged
merged 3 commits into from
Jan 19, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 18, 2023

Bumps knex from 2.4.0 to 2.4.1.

Changelog

Sourced from knex's changelog.

2.4.1 - 18 January, 2022

Bug fixes

  • PostgreSQL: Fix Malformed array literal 2.4.0 Regression #5439
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Fix following Knex update

A recent change and test failed the build after this update to Knex. Checking the Knex changelog we found this

'Array' you say!? The PR links to various issues which all seem to have JSONB and arrays as primary concerns.

We don't have the time to properly dig into why it worked before but now doesn't. But as this was a fix to a regression the behaviour is unlikely to change in Knex so we need to code for it.

This change resolves the issue for us. Looking in the DB, the column is back to holding an empty array (without the fix Knex's change made it an empty JSON object) which matches what the legacy system is doing.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file conventions Changes to tools that enforce our conventions labels Jan 18, 2023
@Cruikshanks
Copy link
Member

@dependabot rebase

Bumps [knex](https://github.com/knex/knex) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/knex-2.4.1 branch from 07b3e92 to 2223251 Compare January 18, 2023 11:05
@Cruikshanks Cruikshanks self-assigned this Jan 18, 2023
@Cruikshanks
Copy link
Member

👀

A recent change and test appear to be failing the build after this update to Knex. Checking the Knex changelog we found this

- [Bug fix: PostgreSQL: Fix Malformed array literal 2.4.0 Regression #5439](https://github.com/knex/knex/blob/master/CHANGELOG.md#241---18-january-2022)

'Array' you say!? [The PR](knex/knex#5439) links to various issues which all seem to have JSONB and arrays as primary concerns.

TBH, we don't have the time to properly dig into why it worked before but now doesn't. But as this was a fix to a regression the behaviour is unlikely to change in Knex so we need to code for it.

This change resolves the issue for us. Looking in the DB the column is back to holding an empty array (without the fix Knex's change made it an empty JSON object) which matches what the legacy system is doing.
@Cruikshanks Cruikshanks merged commit dc90842 into main Jan 19, 2023
@Cruikshanks Cruikshanks deleted the dependabot/npm_and_yarn/knex-2.4.1 branch January 19, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conventions Changes to tools that enforce our conventions dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant