-
Notifications
You must be signed in to change notification settings - Fork 703
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
[3.2] Update utf8encoder
return type in library tour
#5115
Conversation
Visit the preview URL for this PR (updated for commit cb0f7bf): https://dart-dev--pr5115-uint8list-0g2ie3y5.web.app (expires Tue, 21 Nov 2023 01:23:02 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: d851bc446d3c4d7394c5406c6f07255afc7075f3 |
The example before was also correct (as
If you want to use You could also use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with comments
@@ -56,7 +57,7 @@ void main() { | |||
assert(funnyWord == 'Îñţérñåţîöñåļîžåţîờñ'); | |||
// #enddocregion utf8-decode | |||
// #docregion utf8-encode | |||
List<int> encoded = utf8.encode('Îñţérñåţîöñåļîžåţîờñ'); | |||
Uint8List encoded = utf8.encode('Îñţérñåţîöñåļîžåţîờñ'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to avoid the import "dart:typed_data";
import, you can also rely on type inference, just making this var
or final
.
Looking at some other code in the docs at [0] it seems to use var
a lot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think either way is fine. Relying on type inference is consistent with the nearby examples and what our docs default to, but showing the type here helps a bit to support and explain the leading text that it returns a "list of UTF8-encoded bytes:".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. I just updated the PR to run on the 3.1.0 stable release and it failed. After checking the commit, it looks like the change landed after the cut-off and isn't in 3.1.0, but rather 3.2.0.
I'll verify and update the changelog if correct, since it is included under 3.1.0 currently.
Edit: Opened https://dart-review.googlesource.com/c/sdk/+/321260
Oops! Well, it's ready for next time 😅 Though, I might just drop it since relying on type inference is a good point too, as you said. I'll think about it |
utf8encoder
return type in library tourutf8encoder
return type in library tour
I'll defer to you on if we should revisit this in 3.2 or adjust the example to rely on type inference now :) |
Ok closing and will reassess for 3.2 |
I forgot to revert setting the `Makefile` to use `beta` and a new beta release came out since the last update, breaking the build.
Co-authored-by: Parker Lougheed <parlough@gmail.com>
I went with a bit of a different style since it was a major release and we did a major restructuring. It ended up a bit longer because of that, but I think it should be fine. Needs a good copy edit though _(thanks!_). I also added videos this time. Closes #4830 --------- Co-authored-by: Marya <111139605+MaryaBelanger@users.noreply.github.com>
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.8.0 to 3.8.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/setup-node/releases">actions/setup-node's releases</a>.</em></p> <blockquote> <h2>v3.8.1</h2> <h2>What's Changed</h2> <p>In scope of this release, the filter was removed within the cache-save step by <a href="https://github.com/dmitry-shibanov"><code>@dmitry-shibanov</code></a> in <a href="https://redirect.github.com/actions/setup-node/pull/831">actions/setup-node#831</a>. It is filtered and checked in the toolkit/cache library.</p> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/setup-node/compare/v3...v3.8.1">https://github.com/actions/setup-node/compare/v3...v3.8.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d"><code>5e21ff4</code></a> Remove filter for cached paths (<a href="https://redirect.github.com/actions/setup-node/issues/831">#831</a>)</li> <li>See full diff in <a href="https://github.com/actions/setup-node/compare/bea5baf987ba7aa777a8a0b4ace377a21c45c381...5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/setup-node&package-manager=github_actions&previous-version=3.8.0&new-version=3.8.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps ruby from `ed848f4` to `9654f1d`. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruby&package-manager=docker&previous-version=3.2-slim-bookworm&new-version=3.2-slim-bookworm)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.0 to 2.3.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ossf/scorecard-action/releases">ossf/scorecard-action's releases</a>.</em></p> <blockquote> <h2>v2.3.1</h2> <h2>What's Changed</h2> <ul> <li>:seedling: Bump github.com/ossf/scorecard/v4 from v4.13.0 to v4.13.1 by <a href="https://github.com/spencerschrock"><code>@spencerschrock</code></a> in <a href="https://redirect.github.com/ossf/scorecard-action/pull/1282">ossf/scorecard-action#1282</a> <ul> <li>Adds additional Fuzzing detection and fixes a SAST bug related to detecting CodeQL. For a full changelist of what this includes, see the <a href="https://github.com/ossf/scorecard/releases/tag/v4.13.1">v4.13.1</a> release notes</li> </ul> </li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ossf/scorecard-action/compare/v2.3.0...v2.3.1">https://github.com/ossf/scorecard-action/compare/v2.3.0...v2.3.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/ossf/scorecard-action/commit/0864cf19026789058feabb7e87baa5f140aac736"><code>0864cf1</code></a> :seedling: Bump docker tag to for v2.3.1 release (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1284">#1284</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/72df3bff668d052aaec251accaffec0b280410fb"><code>72df3bf</code></a> :seedling: Bump github.com/ossf/scorecard/v4 from v4.13.0 to v4.13.1 (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1282">#1282</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/0ea411f94ac145b6fd793458b7f75ebbe7ae0a8f"><code>0ea411f</code></a> :seedling: Bump the docker-images group with 1 update (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1281">#1281</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/dbfd042453ccc43ade96943685dbece2dd86bbae"><code>dbfd042</code></a> :seedling: Bump the github-actions group with 1 update (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1280">#1280</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/2fa1e2fa153141e2950c7e1299ed05e2081ead0c"><code>2fa1e2f</code></a> :seedling: Bump golang.org/x/net from 0.16.0 to 0.17.0 (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1278">#1278</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/652ddd06c802ac1ba4021a9f02978dc5150b223e"><code>652ddd0</code></a> :seedling: Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1277">#1277</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/28d0c92b8bb9dd266a8cf4dde7bae71c06a0c62f"><code>28d0c92</code></a> :seedling: Group Dependabot updates for GitHub Actions and Dockerfiles (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1276">#1276</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/cb50491a46a858cb57669a16a720b7a00e1f9d29"><code>cb50491</code></a> :seedling: Bump distroless/base from <code>a35b652</code> to <code>b31a6e0</code> (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1275">#1275</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/87157ac77d7ec18a631049bc92fdac7ee63a471a"><code>87157ac</code></a> :seedling: Bump github/codeql-action from 2.21.9 to 2.22.1 (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1274">#1274</a>)</li> <li><a href="https://github.com/ossf/scorecard-action/commit/7c1648b23e27a96acf7c3842fd1921d16bd8d4d2"><code>7c1648b</code></a> :seedling: Bump step-security/harden-runner from 2.5.1 to 2.6.0 (<a href="https://redirect.github.com/ossf/scorecard-action/issues/1273">#1273</a>)</li> <li>Additional commits viewable in <a href="https://github.com/ossf/scorecard-action/compare/483ef80eb98fb506c348f7d62e28055e49fe2398...0864cf19026789058feabb7e87baa5f140aac736">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ossf/scorecard-action&package-manager=github_actions&previous-version=2.3.0&new-version=2.3.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Other failure will be fixed by #5282.
This is temporary until either the next release or the whitespace change causing the failure is reverted from the underlying diagnostic in the SDK. We don't rely on the `dev` testing much anyway, with most of our focus on `stable` and `beta`.
Updates page template formats and substitutes new GitHub labels. Fixes #5268 --------- Co-authored-by: Parker Lougheed <parlough@gmail.com>
Now that dart-lang/site-shared#195 has landed, fixing #5288, we can use normal Markdown code blocks for these entries (that have other code blocks inside of them).
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.4 to 2.22.5. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/github/codeql-action/commit/74483a38d39275f33fcff5f35b679b5ca4a26a99"><code>74483a3</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/1972">#1972</a> from github/update-v2.22.5-2d5ffa777</li> <li><a href="https://github.com/github/codeql-action/commit/2ba6829f2be5b94619d62b0fa920cbceb03b4c25"><code>2ba6829</code></a> Update changelog for v2.22.5</li> <li><a href="https://github.com/github/codeql-action/commit/2d5ffa7773a66e73dade704e35d2d50378caddac"><code>2d5ffa7</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/1970">#1970</a> from github/henrymercer/clean-up-init-logs</li> <li><a href="https://github.com/github/codeql-action/commit/14d0fa93b407a5901c543d04d95cb7f47b64da50"><code>14d0fa9</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/1967">#1967</a> from github/henrymercer/enable-features-on-ghes</li> <li><a href="https://github.com/github/codeql-action/commit/5744b13b669bded0635b39ab6bcfea7bd8aa81b2"><code>5744b13</code></a> Rebuild Action</li> <li><a href="https://github.com/github/codeql-action/commit/f3b55862ea536f287e422fe679ff5a2d31ae22ee"><code>f3b5586</code></a> Check out the right branch in <code>rebuild.yml</code></li> <li><a href="https://github.com/github/codeql-action/commit/95c219819daf2d5528ce5e88bd18d58ed97d1550"><code>95c2198</code></a> Add a log in the OK case</li> <li><a href="https://github.com/github/codeql-action/commit/e8e83c3a56bd831d3e9bf6353a799842468c8299"><code>e8e83c3</code></a> Merge branch 'main' into henrymercer/enable-features-on-ghes</li> <li><a href="https://github.com/github/codeql-action/commit/c7abe9ca5f33e2f7fa03694eef40bb97815c7250"><code>c7abe9c</code></a> Merge pull request <a href="https://redirect.github.com/github/codeql-action/issues/1971">#1971</a> from github/henrymercer/bot-rebuild</li> <li><a href="https://github.com/github/codeql-action/commit/3fc281e07926297f6a1415e70999053c90c5e329"><code>3fc281e</code></a> Add workflow to rebuild the Action on a label</li> <li>Additional commits viewable in <a href="https://github.com/github/codeql-action/compare/49abf0ba24d0b7953cb586944e918a0b92074c80...74483a38d39275f33fcff5f35b679b5ca4a26a99">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github/codeql-action&package-manager=github_actions&previous-version=2.22.4&new-version=2.22.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps ruby from `17de113` to `7650cb9`. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruby&package-manager=docker&previous-version=3.2-slim-bookworm&new-version=3.2-slim-bookworm)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps ruby from `6f687ef` to `adc7f93`. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruby&package-manager=docker&previous-version=3.2-slim-bookworm&new-version=3.2-slim-bookworm)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
s/uses cases/use cases
These additions were already reviewed in the SDK. To help lint users understand potential limitations and provide info on how to learn more.
Also updates various colors to more closely align with Dart/Flutter brand guidelines. Fixes #5293 --------- Co-authored-by: Anthony Sansone <atsansone@users.noreply.github.com>
The `name` field on an input is used for submitting the search, so it's okay for the IDs to be different, but the names to remain the same. Fixes #5295
Includes the latest bug fixes, including some critical security fixes.
Bumps [activesupport](https://github.com/rails/rails) from 7.1.1 to 7.1.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rails/rails/releases">activesupport's releases</a>.</em></p> <blockquote> <h2>7.1.2</h2> <h2>Active Support</h2> <ul> <li> <p>Fix <code>:expires_in</code> option for <code>RedisCacheStore#write_multi</code>.</p> <p><em>fatkodima</em></p> </li> <li> <p>Fix deserialization of non-string "purpose" field in Message serializer</p> <p><em>Jacopo Beschi</em></p> </li> <li> <p>Prevent global cache options being overwritten when setting dynamic options inside a <code>ActiveSupport::Cache::Store#fetch</code> block.</p> <p><em>Yasha Krasnou</em></p> </li> <li> <p>Fix missing <code>require</code> resulting in <code>NoMethodError</code> when running <code>bin/rails secrets:show</code> or <code>bin/rails secrets:edit</code>.</p> <p><em>Stephen Ierodiaconou</em></p> </li> <li> <p>Ensure <code>{down,up}case_first</code> returns non-frozen string.</p> <p><em>Jonathan Hefner</em></p> </li> <li> <p>Fix <code>#to_fs(:human_size)</code> to correctly work with negative numbers.</p> <p><em>Earlopain</em></p> </li> <li> <p>Fix <code>BroadcastLogger#dup</code> so that it duplicates the logger's <code>broadcasts</code>.</p> <p><em>Andrew Novoselac</em></p> </li> <li> <p>Fix issue where <code>bootstrap.rb</code> overwrites the <code>level</code> of a <code>BroadcastLogger</code>'s <code>broadcasts</code>.</p> <p><em>Andrew Novoselac</em></p> </li> <li> <p>Fix <code>ActiveSupport::Cache</code> to handle outdated Marshal payload from Rails 6.1 format.</p> <p>Active Support's Cache is supposed to treat a Marshal payload that can no longer be deserialized as a cache miss. It fail to do so for compressed payload in the Rails 6.1 legacy format.</p> <p><em>Jean Boussier</em></p> </li> <li> <p>Fix <code>OrderedOptions#dig</code> for array indexes.</p> <p><em>fatkodima</em></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rails/rails/blob/v7.1.2/activesupport/CHANGELOG.md">activesupport's changelog</a>.</em></p> <blockquote> <h2>Rails 7.1.2 (November 10, 2023)</h2> <ul> <li> <p>Fix <code>:expires_in</code> option for <code>RedisCacheStore#write_multi</code>.</p> <p><em>fatkodima</em></p> </li> <li> <p>Fix deserialization of non-string "purpose" field in Message serializer</p> <p><em>Jacopo Beschi</em></p> </li> <li> <p>Prevent global cache options being overwritten when setting dynamic options inside a <code>ActiveSupport::Cache::Store#fetch</code> block.</p> <p><em>Yasha Krasnou</em></p> </li> <li> <p>Fix missing <code>require</code> resulting in <code>NoMethodError</code> when running <code>bin/rails secrets:show</code> or <code>bin/rails secrets:edit</code>.</p> <p><em>Stephen Ierodiaconou</em></p> </li> <li> <p>Ensure <code>{down,up}case_first</code> returns non-frozen string.</p> <p><em>Jonathan Hefner</em></p> </li> <li> <p>Fix <code>#to_fs(:human_size)</code> to correctly work with negative numbers.</p> <p><em>Earlopain</em></p> </li> <li> <p>Fix <code>BroadcastLogger#dup</code> so that it duplicates the logger's <code>broadcasts</code>.</p> <p><em>Andrew Novoselac</em></p> </li> <li> <p>Fix issue where <code>bootstrap.rb</code> overwrites the <code>level</code> of a <code>BroadcastLogger</code>'s <code>broadcasts</code>.</p> <p><em>Andrew Novoselac</em></p> </li> <li> <p>Fix <code>ActiveSupport::Cache</code> to handle outdated Marshal payload from Rails 6.1 format.</p> <p>Active Support's Cache is supposed to treat a Marshal payload that can no longer be deserialized as a cache miss. It fail to do so for compressed payload in the Rails 6.1 legacy format.</p> <p><em>Jean Boussier</em></p> </li> <li> <p>Fix <code>OrderedOptions#dig</code> for array indexes.</p> <p><em>fatkodima</em></p> </li> <li> <p>Fix time travel helpers to work when nested using with separate classes.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rails/rails/commit/6b93fff8af32ef5e91f4ec3cfffb081d0553faf0"><code>6b93fff</code></a> Preparing for 7.1.2 release</li> <li><a href="https://github.com/rails/rails/commit/200749dec7f59a819fbbcd31cbee179d79517ac8"><code>200749d</code></a> Sync CHANGELOG</li> <li><a href="https://github.com/rails/rails/commit/f6987c46572666c439a1ad68b3ab5b41645f2bcf"><code>f6987c4</code></a> Merge pull request <a href="https://redirect.github.com/rails/rails/issues/49974">#49974</a> from fatkodima/fix-redis-write_multi-with-expires_in</li> <li><a href="https://github.com/rails/rails/commit/02e3f69fcd334b2a6abbc417dfa6e7a553fcceee"><code>02e3f69</code></a> Merge pull request <a href="https://redirect.github.com/rails/rails/issues/49669">#49669</a> from intrip/fix-message-metadata-non-str</li> <li><a href="https://github.com/rails/rails/commit/b13b373d9b4d0b1ba666627d3f40ec13f913fdf4"><code>b13b373</code></a> Merge pull request <a href="https://redirect.github.com/rails/rails/issues/49784">#49784</a> from jhawthorn/notification_exception_groups</li> <li><a href="https://github.com/rails/rails/commit/eed1c439b51674663b57776d4f72b32adb0a45e9"><code>eed1c43</code></a> Merge pull request <a href="https://redirect.github.com/rails/rails/issues/49837">#49837</a> from jonathanhefner/string-xcase_first-non-frozen-e...</li> <li><a href="https://github.com/rails/rails/commit/a42137ab91188eec1d240630a2b79af4fee37ee0"><code>a42137a</code></a> Use h2 headings for Module::Concerning [ci-skip]</li> <li><a href="https://github.com/rails/rails/commit/4b4615ac91c5daca9a137a2eca35e7a246b965eb"><code>4b4615a</code></a> Merge pull request <a href="https://redirect.github.com/rails/rails/issues/49800">#49800</a> from HolyWalley/fix-cache-options-being-overwriten</li> <li><a href="https://github.com/rails/rails/commit/54e21652d411cc1949448813e47f834f821432bb"><code>54e2165</code></a> Merge pull request <a href="https://redirect.github.com/rails/rails/issues/49792">#49792</a> from stevegeek/fix_deprecation_warning_on_secrets_s...</li> <li><a href="https://github.com/rails/rails/commit/6d55d50dbfa9f174611637d9375ae72ea4b80fe4"><code>6d55d50</code></a> Merge pull request <a href="https://redirect.github.com/rails/rails/issues/49791">#49791</a> from Earlopain/number-human-size-negative</li> <li>Additional commits viewable in <a href="https://github.com/rails/rails/compare/v7.1.1...v7.1.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=activesupport&package-manager=bundler&previous-version=7.1.1&new-version=7.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@parlough sorry I was trying to resolve merge conflicts since this branch is pretty old, and I pulled in all the commits from main somehow. Should I just close this and start a new PR for this change? Not sure how to fix the missing CLA issue that one of those commits pulled in. |
@MaryaBelanger You could do an interactive rebase but it might just be easier to open a new PR. Did you decide to rely on type inference or specify the type? |
@parlough I decided to use the specific type, so I added the import to the start of the excerpt. Idk if that makes sense though (since the rest of the code isn't in |
I think you can wrap it in a method or just not show the import, whichever you prefer. |
Changing the return type here to align with breaking change #52801
@mkustermann is changing the return type sufficient in this example, or does more of it need to change?
Also, I had to import
dart:typed_data
for the code excerpt, is that necessary for users to use the new return type? I didn't add any mention to the doc about it but I will if it's part of using the type. Thanks!