Skip to content

chore(deps): bump the drift group across 1 directory with 4 updates #4977

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 5, 2024

Bumps the drift group with 4 updates in the /packages/common/amplify_db_common_dart directory: drift, amplify_core, sqlite3 and drift_dev.

Updates drift from 2.14.1 to 2.18.0

Release notes

Sourced from drift's releases.

Drift 2.18.0

Manager APIs

The biggest new feature in this release is the addition of manager APIs, which make it much easier to write common simple queries. The new API has been designed to be easier to use and to avoid boilerplate for common CRUD queries. This feature requires additional code to be generated - if you prefer using the existing APIs exclusively, you can use the generate_manager: false builder option.

Other additions

  • Drift now supports geopoly tables and queries in .drift files if the extension is enabled.
  • Add AggregateFunctionExpression to write custom aggregate function invocations in the Dart query builder.
  • The json_group_array and jsonb_group_array functions now contain an orderBy and filter parameter.

Fixes

  • Improve finding the correct import alias in generated code for part files.

Drift 2.17.0

Core

  • Add the TypeConverter.extensionType factory to create type converters for extension types.
  • Fix invalid SQL syntax being generated for BLOB literals on postgres.
  • Add a setup parameter to SchemaVerifier. It is called when the verifier creates database connections (similar to the callback on NativeDatabase) and can be used to register custom functions.

Generator

  • Adds companion entry to DataClassName to override the name of the generated companion class.
  • Fix drift using the wrong import alias in generated part files.
  • Add the use_sql_column_name_as_json_key builder option.
  • Fix parsing binary literals in drift files.
  • Expand support for IN expressions in drift files, they now support tuples on the left-hand side and the shorthand syntax for table references and table-valued functions.
  • Allow custom class names for CREATE VIEW statements.
  • Support the INT64 hint for CREATE TABLE statements.

Drift 2.16.0 mostly contains performance and stability improvements:

  • When a migration throws, the database will now block subsequent operations instead of potentially allowing them to operate on a database in an inconsistent state.
  • Improve stack traces for errors happening on drift isolates (which includes usages of NativeDatabase.createInBackground).
  • Statements built through the Dart query builder will now run in the context active while they are running, instead of the context active at the time they were created. For instance, creating an UpdateStatement with database.update outside of a transaction and then calling UpdateStatement.write inside of a transaction will now perform the update inside of the transaction, instead of causing a deadlock.
  • Improve performance when reading results from joined statements with many rows.
  • Don't cache EXPLAIN statements, avoiding schema locks.
  • Deprecate Value.ofNullable in favor of Value.absentIfNull, which is more explicit about its behavior and allows nullable types too.
  • Migrate WasmDatabase to dart:js_interop and package:web.

Improvements to the generator

  • Allow selecting from virtual tables using the table-valued function syntax.
  • Keep import alias when referencing existing elements in generated code (#2845).

Improvements to drift_postgres

  • Drift's comparable expression operators are now available for expressions using postgres-specific date or timestamp types.

... (truncated)

Commits
  • 7d1430c Prepare 2.18 release
  • d8b5ff2 Merge pull request #2988 from dickermoshe/refactor-manager-generator
  • 0de7615 fix: typo
  • da788c0 refactor: remove small single use snippets from templates
  • 8ca18b9 nit: remove extra underscore
  • af8dff7 Merge branch 'simolus3:develop' into refactor-manager-generator
  • c54fdff Check package names when finding import aliases.
  • f4a2887 Merge branch 'simolus3:develop' into refactor-manager-generator
  • 0170918 refactor: refactor manager generator to use readable templates
  • 6ba049e Fix binding bigint values in postgres backend
  • Additional commits viewable in compare view

Updates amplify_core from 2.0.0 to 2.1.0

Commits
  • fe142de chore(version): Bump version
  • 0ff33b3 feat(datastore): Migrate to Amplify Swift V2 (#4962)
  • e903fa6 chore(actions): bump min swift version to 5.9 and updated CI jobs (#4916)
  • 5701237 chore: temp skip download cancel tests
  • a3142a5 chore: ignore MaterialStateProperty warnings (#4836)
  • 7d68b04 chore: ignore errors that are not the result of Amplify.configure() (#4835)
  • 0170da0 chore(version): Bump version
  • 3ab62e6 fix(common): set upper bound limit for sqlite version to fix ci build failure...
  • 451ccc1 chore(version): bump version for v2
  • dcfd58b chore: replace mockito with mocktail (#4813)
  • Additional commits viewable in compare view

Updates sqlite3 from 2.4.2 to 2.4.3

Commits
  • 855bdc1 Avoid breaking drift
  • b50a35e Add notes for experimental dart2wasm support
  • e64935c Fix most unit tests on dart2wasm
  • b38779a Fix analysis warnings
  • ffd4c54 Add allowlist for web imports
  • 9ec90cc Merge branch 'web'
  • 65d986f Upgrade sqlcipher
  • 8e23589 Update to sqlite 3.45.3
  • 72bd8d3 Fix resolving dependencies in examples
  • 44d78ee Clarify select methods for returning
  • Additional commits viewable in compare view

Updates drift_dev from 2.14.1 to 2.18.0

Commits
  • 7d1430c Prepare 2.18 release
  • d8b5ff2 Merge pull request #2988 from dickermoshe/refactor-manager-generator
  • 0de7615 fix: typo
  • da788c0 refactor: remove small single use snippets from templates
  • 8ca18b9 nit: remove extra underscore
  • af8dff7 Merge branch 'simolus3:develop' into refactor-manager-generator
  • c54fdff Check package names when finding import aliases.
  • f4a2887 Merge branch 'simolus3:develop' into refactor-manager-generator
  • 0170918 refactor: refactor manager generator to use readable templates
  • 6ba049e Fix binding bigint values in postgres backend
  • Additional commits viewable in compare view

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.


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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

@dependabot dependabot bot requested a review from a team as a code owner June 5, 2024 12:43
@dependabot dependabot bot added dart Pull requests that update Dart code dependencies Pull requests that update a dependency file labels Jun 5, 2024
Bumps the drift group with 4 updates in the /packages/common/amplify_db_common_dart directory: [drift](https://github.com/simolus3/drift), [amplify_core](https://github.com/aws-amplify/amplify-flutter/tree/main/packages), [sqlite3](https://github.com/simolus3/sqlite3.dart) and [drift_dev](https://github.com/simolus3/drift).


Updates `drift` from 2.14.1 to 2.18.0
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](simolus3/drift@drift-2.14.1...drift-2.18.0)

Updates `amplify_core` from 2.0.0 to 2.1.0
- [Release notes](https://github.com/aws-amplify/amplify-flutter/releases)
- [Commits](https://github.com/aws-amplify/amplify-flutter/commits/v2.1.0/packages)

Updates `sqlite3` from 2.4.2 to 2.4.3
- [Release notes](https://github.com/simolus3/sqlite3.dart/releases)
- [Commits](simolus3/sqlite3.dart@sqlite3-2.4.2...sqlite3-2.4.3)

Updates `drift_dev` from 2.14.1 to 2.18.0
- [Release notes](https://github.com/simolus3/drift/releases)
- [Commits](simolus3/drift@drift_dev-2.14.1...drift_dev-2.18.0)

---
updated-dependencies:
- dependency-name: drift
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: drift
- dependency-name: amplify_core
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: drift
- dependency-name: sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: drift
- dependency-name: drift_dev
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: drift
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pub/packages/common/amplify_db_common_dart/drift-66c8ee1462 branch from a348969 to c22fb99 Compare June 7, 2024 12:12
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 7, 2024

Looks like these dependencies are updatable in another way, so this is no longer needed.

@dependabot dependabot bot closed this Jun 7, 2024
@dependabot dependabot bot deleted the dependabot/pub/packages/common/amplify_db_common_dart/drift-66c8ee1462 branch June 7, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dart Pull requests that update Dart code dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants