Skip to content

Bump dart_mappable and dart_mappable_builder#8

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pub/dart_mappable-and-dart_mappable_builder-4.2.0
Open

Bump dart_mappable and dart_mappable_builder#8
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pub/dart_mappable-and-dart_mappable_builder-4.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 26, 2023

Copy link
Copy Markdown

Bumps dart_mappable and dart_mappable_builder. These dependencies needed to be updated together.
Updates dart_mappable from 3.3.1 to 4.2.0

Release notes

Sourced from dart_mappable's releases.

v4.0.0

Changelog

  • Require sdk: >=3.0.0.

  • Added support for Records.

    • Fields of a class can now be any record type.

    • You can annotate toplevel record typedefs:

        @MappableRecord()
        typedef Coordinates = ({double latitude, double longitude});

Documentation

Record Fields

dart_mappable supports record fields out of the box. When you define a class, any field using a record type will be automatically included in the serialization.

@MappableClass()
class Location with LocationMappable {
const Location({
required this.name,
required this.coordinates,
});
final (String, String) name;
final ({double lat, double lng}) coordinates;
}

An instance of this class would be encoded to:

{
  "name": {
    "$1": "John",
    "$2": "Doe"
  },
  "coordinates": {
    "lat": 123,
    "lng": 456
  }
}

... (truncated)

Commits

Updates dart_mappable_builder from 3.3.0 to 4.2.0

Release notes

Sourced from dart_mappable_builder's releases.

v4.0.0

Changelog

  • Require sdk: >=3.0.0.

  • Added support for Records.

    • Fields of a class can now be any record type.

    • You can annotate toplevel record typedefs:

        @MappableRecord()
        typedef Coordinates = ({double latitude, double longitude});

Documentation

Record Fields

dart_mappable supports record fields out of the box. When you define a class, any field using a record type will be automatically included in the serialization.

@MappableClass()
class Location with LocationMappable {
const Location({
required this.name,
required this.coordinates,
});
final (String, String) name;
final ({double lat, double lng}) coordinates;
}

An instance of this class would be encoded to:

{
  "name": {
    "$1": "John",
    "$2": "Doe"
  },
  "coordinates": {
    "lat": 123,
    "lng": 456
  }
}

... (truncated)

Commits

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 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)

Bumps [dart_mappable](https://github.com/schultek/dart_mappable) and [dart_mappable_builder](https://github.com/schultek/dart_mappable). These dependencies needed to be updated together.

Updates `dart_mappable` from 3.3.1 to 4.2.0
- [Release notes](https://github.com/schultek/dart_mappable/releases)
- [Commits](https://github.com/schultek/dart_mappable/commits)

Updates `dart_mappable_builder` from 3.3.0 to 4.2.0
- [Release notes](https://github.com/schultek/dart_mappable/releases)
- [Commits](https://github.com/schultek/dart_mappable/commits)

---
updated-dependencies:
- dependency-name: dart_mappable
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: dart_mappable_builder
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dart Pull requests that update Dart code dependencies Pull requests that update a dependency file labels Dec 26, 2023
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