Skip to content

Commit d3f1c64

Browse files
authored
Add What's new (on the site) entry for Dart 3.1 (#5131)
Also fixes previous changelog links throughout the page. Closes #5076
1 parent 9ee16a7 commit d3f1c64

File tree

1 file changed

+72
-8
lines changed

1 file changed

+72
-8
lines changed

src/_guides/whats-new.md

+72-8
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,82 @@ and follow the [Dart blog][].
1717
[dart-announce]: https://groups.google.com/a/dartlang.org/d/forum/announce
1818
[Dart blog]: https://medium.com/dartlang
1919

20+
## August 16, 2023: 3.1 release
21+
22+
This section lists notable changes made from May 11, 2023,
23+
through August 16, 2023.
24+
For details about the 3.1 release,
25+
check out
26+
[Dart 3.1 & a retrospective on functional style programming in Dart 3][]
27+
and the [SDK changelog][3-1-changelog].
28+
29+
[Dart 3.1 & a retrospective on functional style programming in Dart 3]: https://medium.com/dartlang/dart-3-1-a-retrospective-on-functional-style-programming-in-dart-3-a1f4b3a7cdda
30+
[3-1-changelog]: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#310
31+
32+
### Docs updated or added to dart.dev
33+
{: .no_toc}
34+
35+
In addition to bug fixes and incremental improvements,
36+
we made the following changes to this site:
37+
38+
* Overhauled the linter rule documentation to replace the old linter site:
39+
* Moved each linter rule's documentation to its own page.
40+
For example: [`avoid_dynamic_calls`][].
41+
* Added an example `analysis_options.yaml` that enables
42+
[all linter rules][] available in the latest Dart release.
43+
* Updated the [index of all available linter rules][]
44+
to enable easier lint discovery.
45+
* Augmented the [class modifiers][] documentation by adding a
46+
[Class modifiers reference][] to outline how they interact with each other.
47+
* Introduced a [Class modifiers for API maintainers][] guide to help
48+
developers best use class modifiers.
49+
* Rewrote the [switch expression][] documentation
50+
to better account for its differences to switch statements.
51+
* Documented support for specifying [topics][] in your pubspec file
52+
to categorize your package on the pub.dev site.
53+
* Clarified that [package screenshots][] are meant to
54+
showcase package functionality, not the logo or icon of the package.
55+
* Added previous and next buttons to Dart's
56+
[language documentation][] to enable a guided learning experience.
57+
* Continued expanding the new site-wide [glossary][].
58+
* Added a migration note about how the
59+
[pub cache move][] on Windows was finalized in Dart 3.
60+
* Simplified and updated older docs now that
61+
Dart's type system is always [null safe][].
62+
63+
[class modifiers]: /language/class-modifiers
64+
[Class modifiers reference]: /language/modifier-reference
65+
[Class modifiers for API maintainers]: /language/class-modifiers-for-apis
66+
[`avoid_dynamic_calls`]: /tools/linter-rules/avoid_dynamic_calls
67+
[all linter rules]: /tools/linter-rules/all
68+
[index of all available linter rules]: /tools/linter-rules#rules
69+
[switch expression]: /language/branches#switch-expressions
70+
[topics]: /tools/pub/pubspec#topics
71+
[language documentation]: /language
72+
[package screenshots]: /tools/pub/pubspec#screenshots
73+
[glossary]: /resources/glossary
74+
[pub cache move]: /resources/dart-3-migration#other-tools-changes
75+
[null safe]: /null-safety
76+
77+
### Articles added to the Dart blog
78+
{: .no_toc}
79+
80+
We published the following article on the Dart blog:
81+
82+
* [Dart DevTools: Analyzing application performance with the CPU Profiler][blog-6-12-23]
83+
84+
[blog-6-12-23]: https://medium.com/dartlang/dart-devtools-analyzing-application-performance-with-the-cpu-profiler-3e94a0ec06ae
85+
2086
## May 10, 2023: 3.0 release
2187

2288
This section lists notable changes made from January 26, 2023,
2389
through May 10, 2023.
2490
For details about the major 3.0 release,
2591
check out [Announcing Dart 3][],
26-
and the [SDK changelog][].
92+
and the [SDK changelog][3-0-changelog].
2793

2894
[Announcing Dart 3]: https://medium.com/dartlang/announcing-dart-3-53f065a10635
29-
[SDK changelog]: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#300---2023-05-10
95+
[3-0-changelog]: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#300---2023-05-10
3096

3197
### Docs updated or added to dart.dev
3298
{: .no_toc}
@@ -47,8 +113,6 @@ we added documentation for each of Dart 3's major features:
47113
- [Records][], a new anonymous, immutable, and aggregate type
48114
that enables [multiple returns][].
49115
- [Class modifiers][] that give libraries more control over exported types.
50-
As well as a [reference][class-modifier-reference] to
51-
better understand how they combine.
52116

53117
To help you transition to Dart 3's enforcement of [sound null safety][]
54118
and other changes, we also prepared the following updates:
@@ -134,10 +198,10 @@ This section lists notable changes made from August 31, 2022,
134198
through January 25, 2023.
135199
For details about the 2.19 + 3.0 alpha releases,
136200
see [Introducing Dart 3 alpha][],
137-
and the [SDK changelog][].
201+
and the [SDK changelog][2-19-changelog].
138202

139203
[Introducing Dart 3 alpha]: https://medium.com/dartlang/dart-3-alpha-f1458fb9d232
140-
[SDK changelog]: https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#2190
204+
[2-19-changelog]: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#2190---2023-01-24
141205

142206
### Docs updated or added to dart.dev
143207
{: .no_toc}
@@ -236,10 +300,10 @@ This section lists notable changes made from May 12, 2022,
236300
through August 30, 2022.
237301
For details about the 2.18 release,
238302
see [Dart 2.18: Objective-C & Swift interop][],
239-
and the [SDK changelog][].
303+
and the [SDK changelog][2-18-changelog].
240304

241305
[Dart 2.18: Objective-C & Swift interop]: https://medium.com/dartlang/dart-2-18-f4b3101f146c
242-
[SDK changelog]: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#2180
306+
[2-18-changelog]: https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#2180---2022-08-30
243307

244308
In addition to bug fixes and incremental improvements,
245309
we made the following changes to this site:

0 commit comments

Comments
 (0)