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

chore(deps): bump freezed, source_gen, dart_style and json_serializable #170

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 7, 2025

Bumps freezed, source_gen, dart_style and json_serializable. These dependencies needed to be updated together.
Updates freezed from 2.5.7 to 2.5.8

Commits

Updates source_gen from 1.5.0 to 2.0.0

Release notes

Sourced from source_gen's releases.

package:source_gen v2.0.0

  • Breaking Change: Change formatOutput function to accept a language version parameter.
  • Formatting Change: Generated code will no longer apply any fixes by default (previously it would apply the single cascades statements fix). The new formatter does not support applying fixes.
  • Document deduplication behavior for the output of GeneratorForAnnotation.generateForAnnotatedElement.
  • Support all the glob quotes.
  • Require analyzer: '>=6.9.0 <8.0.0'
  • Support the latest package:dart_style
  • LibraryBuilder, PartBuilder, and SharedPartBuilder now take an optional writeDescriptions boolean. When set to false, headers and generator descriptions for the files will not be included in the builder output.
  • Include //dart format width=80 comments in files generated by a LibraryBuilder or PartBuilder and formatted with the default callback.
  • Require Dart 3.6.0
Commits
  • 947a0e2 Support latest analyzer and dart_style, prepare v2 release (#736)
  • 49a96d8 Bump mind SDK to 3.6.0 stable (#734)
  • 9f95ac3 Only add dart format width comment on format (#733)
  • b7b0c7d Bump dart-lang/setup-dart in the github-actions group (#732)
  • 18c17fc Bump the github-actions group with 2 updates (#731)
  • 936fb07 blast_repo fixes (#730)
  • eb98c68 Read libraryImports/libraryExports from the defining unit. (#729)
  • 2bea904 Read parts with the defining compilation unit (#728)
  • da1190d Add dart format width comments (#725)
  • 4b4431f Ignore some deprecated analyzer members (#726)
  • Additional commits viewable in compare view

Updates dart_style from 2.3.7 to 3.0.1

Release notes

Sourced from dart_style's releases.

package:dart_style v3.0.1

  • Handle trailing commas in for-loop updaters (#1354).
  • Format || patterns like fallthrough cases in switch expressions (#1602).
  • Handle comments and metadata before variables more gracefully (#1604).
  • Ensure comment formatting is idempotent (#1606).
  • Better indentation of leading comments on property accesses in binary operator operands (#1611).
  • Don't crash on doc comments in local variable declarations (#1621).

package:dart_style v3.0.0

This is a large change. Under the hood, the formatter was almost completely rewritten, with the codebase now containing both the old and new implementations. The old formatter exists to support the older "short" style and the new code implements the new "tall" style.

The formatter uses the language version of the formatted code to determine which style you get. If the language version is 3.6 or lower, the code is formatted with the old style. If 3.7 or later, you get the new tall style. You typically control the language version by setting a min SDK constraint in your package's pubspec.

In addition to the new formatting style, a number of other API and CLI changes are included, some of them breaking:

  • Support project-wide page width configuration. By long request, you can now configure your preferred formatting page width on a project-wide basis. When formatting files, the formatter will look in the file's directory and any surrounding directories for an analysis_options.yaml file. If it finds one, it looks for the following YAML:

    formatter:
      page_width: 123

    If it finds a formatter key containing a map with a page_width key whose value is an integer, then that is the page width that the file is formatted using. Since the formatter will walk the surrounding directories until it finds an analysis_options.yaml file, this can be used to globally set the page width for an entire directory, package, or even collection of packages.

  • Support overriding the page width for a single file. In code formatted using the new tall style, you can use a special marker comment to control the page width that it's formatted using:

... (truncated)

Changelog

Sourced from dart_style's changelog.

3.0.1

  • Handle trailing commas in for-loop updaters (#1354).
  • Format || patterns like fallthrough cases in switch expressions (#1602).
  • Handle comments and metadata before variables more gracefully (#1604).
  • Ensure comment formatting is idempotent (#1606).
  • Better indentation of leading comments on property accesses in binary operator operands (#1611).
  • Don't crash on doc comments in local variable declarations (#1621).

3.0.0

This is a large change. Under the hood, the formatter was almost completely rewritten, with the codebase now containing both the old and new implementations. The old formatter exists to support the older "short" style and the new code implements the new "tall" style.

The formatter uses the language version of the formatted code to determine which style you get. If the language version is 3.6 or lower, the code is formatted with the old style. If 3.7 or later, you get the new tall style. You typically control the language version by setting a min SDK constraint in your package's pubspec.

In addition to the new formatting style, a number of other API and CLI changes are included, some of them breaking:

  • Support project-wide page width configuration. By long request, you can now configure your preferred formatting page width on a project-wide basis. When formatting files, the formatter will look in the file's directory and any surrounding directories for an analysis_options.yaml file. If it finds one, it looks for the following YAML:

    formatter:
      page_width: 123

    If it finds a formatter key containing a map with a page_width key whose value is an integer, then that is the page width that the file is formatted using. Since the formatter will walk the surrounding directories until it finds an analysis_options.yaml file, this can be used to globally set the page width for an entire directory, package, or even collection of packages.

  • Support overriding the page width for a single file. In code formatted using the new tall style, you can use a special marker comment to control the page width that it's formatted using:

... (truncated)

Commits

Updates json_serializable from 6.9.0 to 6.9.2

Release notes

Sourced from json_serializable's releases.

package:json_serializable v6.9.2

  • Support the latest package:analyzer.

package:json_serializable v6.9.1

  • Support the latest package:analyzer and package:source_gen.
  • Require Dart 3.6
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 [freezed](https://github.com/rrousselGit/freezed), [source_gen](https://github.com/dart-lang/source_gen), [dart_style](https://github.com/dart-lang/dart_style) and [json_serializable](https://github.com/google/json_serializable.dart). These dependencies needed to be updated together.

Updates `freezed` from 2.5.7 to 2.5.8
- [Commits](rrousselGit/freezed@freezed-v2.5.7...freezed-v2.5.8)

Updates `source_gen` from 1.5.0 to 2.0.0
- [Release notes](https://github.com/dart-lang/source_gen/releases)
- [Commits](dart-lang/source_gen@source_gen-v1.5.0...source_gen-v2.0.0)

Updates `dart_style` from 2.3.7 to 3.0.1
- [Release notes](https://github.com/dart-lang/dart_style/releases)
- [Changelog](https://github.com/dart-lang/dart_style/blob/main/CHANGELOG.md)
- [Commits](dart-lang/dart_style@v2.3.7...v3.0.1)

Updates `json_serializable` from 6.9.0 to 6.9.2
- [Release notes](https://github.com/google/json_serializable.dart/releases)
- [Commits](google/json_serializable.dart@json_serializable-v6.9.0...json_serializable-v6.9.2)

---
updated-dependencies:
- dependency-name: freezed
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: source_gen
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: dart_style
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: json_serializable
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Copy link

netlify bot commented Jan 7, 2025

Deploy Preview for figmage canceled.

Name Link
🔨 Latest commit 9022dc4
🔍 Latest deploy log https://app.netlify.com/sites/figmage/deploys/677cdffc4fa6270008ef4e5e

Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 14, 2025

Superseded by #171.

@dependabot dependabot bot closed this Jan 14, 2025
@dependabot dependabot bot deleted the dependabot/pub/multi-21e5dc4022 branch January 14, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants