Skip to content

Commit 5b1e226

Browse files
athomasCommit Queue
authored andcommitted
[api.dart.dev] Update incorrect URLs in the Dart SDK sources
The old site supported api.dart.dev/stable/<page in the latest version> links. These currently don't work, but the correct link omits the `/stable/` path component. Even if we add redirects to make the old URLs work, we still want to update sources with the canonical URLs. CoreLibraryReviewExempt: Documentation change only. Fixes: #57110 Change-Id: I0b20bfa875db5ce62362a02e884d7d43b0efc73e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/395961 Commit-Queue: Ivan Inozemtsev <[email protected]> Reviewed-by: Ivan Inozemtsev <[email protected]> Commit-Queue: Alexander Thomas <[email protected]> Auto-Submit: Alexander Thomas <[email protected]>
1 parent 14734d5 commit 5b1e226

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@ This is a patch release that:
24652465
spawned via `Isolate.spawnUri`. See [`SendPort.send`] documentation for
24662466
the full list of restrictions.
24672467

2468-
[`SendPort.send`]: https://api.dart.dev/stable/dart-isolate/SendPort/send.html
2468+
[`SendPort.send`]: https://api.dart.dev/dart-isolate/SendPort/send.html
24692469

24702470
#### `dart:mirrors`
24712471

@@ -2474,8 +2474,8 @@ This is a patch release that:
24742474
previously used internally in dart2js. Both are no longer functional.
24752475

24762476
[#34233]: https://github.com/dart-lang/sdk/issues/34233
2477-
[`MirrorsUsed`]: https://api.dart.dev/stable/dart-mirrors/MirrorsUsed-class.html
2478-
[`Comment`]: https://api.dart.dev/stable/dart-mirrors/Comment-class.html
2477+
[`MirrorsUsed`]: https://api.dart.dev/dart-mirrors/MirrorsUsed-class.html
2478+
[`Comment`]: https://api.dart.dev/dart-mirrors/Comment-class.html
24792479

24802480
### Other libraries
24812481

@@ -5564,7 +5564,7 @@ Thanks to **Vincenzo di Cicco** for finding and reporting this issue.
55645564
This release also improves compatibility with ARMv8 processors (issue [40001][])
55655565
and dart:io stability (issue [40589][]).
55665566

5567-
[nodevalidator]: https://api.dart.dev/stable/dart-html/NodeValidator-class.html
5567+
[nodevalidator]: https://api.dart.dev/dart-html/NodeValidator-class.html
55685568
[cve-2020-8923]:
55695569
https://github.com/dart-lang/sdk/security/advisories/GHSA-hfq3-v9pv-p627
55705570
[40001]: https://github.com/dart-lang/sdk/issues/40001

docs/gsoc/Dart-GSoC-2023-Project-Ideas.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Successfully completely this project will likely involve:
119119

120120
* Determining exactly what APIs should be make available in Dart.
121121
* Creating a JNI bindings for those APIs using [`package:jnigen`](https://pub.dev/packages/jnigen).
122-
* Creating a higher-level interface over the JNI bindings e.g. so the Dart developer can work with [Dart URIs](https://api.dart.dev/stable/dart-core/Uri-class.html) rather than [java.net.URI](https://developer.android.com/reference/java/net/URI).
122+
* Creating a higher-level interface over the JNI bindings e.g. so the Dart developer can work with [Dart URIs](https://api.dart.dev/dart-core/Uri-class.html) rather than [java.net.URI](https://developer.android.com/reference/java/net/URI).
123123
* Creating a [`package:http` `Client`](https://pub.dev/documentation/http/latest/http/Client-class.html) implementation using the interface above.
124124
* Verifying that the `Client` implementation passes the [conformance tests](https://github.com/dart-lang/http/tree/main/pkgs/http_client_conformance_tests).
125125

@@ -135,19 +135,19 @@ A good project proposal will describe what Java APIs are necessary to implement
135135

136136

137137

138-
## **Idea:** Refactor Plus packages to utilize new Dart 3 language features
138+
## **Idea:** Refactor Plus packages to utilize new Dart 3 language features
139139

140140
- **Possible Mentor(s)**: Majid Hajian <[email protected]>
141141
- **Difficulty**: Hard
142142
- **Project size**: / Medium (175 hours)
143143
- **Skills**: Dart
144144

145-
**Description**: Dart 3 introduces a few new language features. There are several features such as Records, pattern matching and new direct platform library interop which potentially helps to improve code readability and better API design for packages.
145+
**Description**: Dart 3 introduces a few new language features. There are several features such as Records, pattern matching and new direct platform library interop which potentially helps to improve code readability and better API design for packages.
146146

147147
We would like to explore the possibilities of the new language features that could help to improve packages and create a new API (potentially) or refactor internal coding that make the package to take full advantage of Dart 3. We would like to also prepare a guideline after this refactoring for other maintainers to figure out what could be improved or changed.
148148

149149
We are using [Federated plugins](https://flutter.dev/to/federated-plugins), therefore this is likely to involve:
150-
150+
151151
* refactoring `platform_interface` class for each package,
152152
* refactoring app-facing and platform-specific-implementation packages,
153153
* potentially removing native code and replacing it with direct dart API calls,

pkg/vm_service/java/src/org/dartlang/vm/service/VmServiceBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public void received(Sentinel response) {
298298
/**
299299
* Invoke a specific service protocol extension method.
300300
* <p>
301-
* See https://api.dart.dev/stable/dart-developer/dart-developer-library.html.
301+
* See https://api.dart.dev/dart-developer/dart-developer-library.html.
302302
*/
303303
public void callServiceExtension(String isolateId, String method, ServiceExtensionConsumer consumer) {
304304
JsonObject params = new JsonObject();
@@ -309,7 +309,7 @@ public void callServiceExtension(String isolateId, String method, ServiceExtensi
309309
/**
310310
* Invoke a specific service protocol extension method.
311311
* <p>
312-
* See https://api.dart.dev/stable/dart-developer/dart-developer-library.html.
312+
* See https://api.dart.dev/dart-developer/dart-developer-library.html.
313313
*/
314314
public void callServiceExtension(String isolateId, String method, JsonObject params, ServiceExtensionConsumer consumer) {
315315
params.addProperty("isolateId", isolateId);

pkg/vm_service/lib/src/dart_io_extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ class HttpProfileResponseData {
703703
/// received across the wire and whether callers will receive compressed or
704704
/// uncompressed bytes when they listed to this response's byte stream.
705705
///
706-
/// See [HttpClientResponseCompressionState](https://api.dart.dev/stable/dart-io/HttpClientResponseCompressionState-class.html) for possible values.
706+
/// See [HttpClientResponseCompressionState](https://api.dart.dev/dart-io/HttpClientResponseCompressionState-class.html) for possible values.
707707
final String? compressionState;
708708

709709
/// The reason phrase associated with the status code.

pkg/vm_service/lib/src/vm_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ class VmService {
18571857

18581858
/// Invoke a specific service protocol extension method.
18591859
///
1860-
/// See https://api.dart.dev/stable/dart-developer/dart-developer-library.html.
1860+
/// See https://api.dart.dev/dart-developer/dart-developer-library.html.
18611861
Future<Response> callServiceExtension(String method,
18621862
{String? isolateId, Map<String, dynamic>? args}) {
18631863
if (args == null && isolateId == null) {

pkg/vm_service/tool/dart/generate_dart_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export 'snapshot_graph.dart' show HeapSnapshotClass,
4747
4848
/// Invoke a specific service protocol extension method.
4949
///
50-
/// See https://api.dart.dev/stable/dart-developer/dart-developer-library.html.
50+
/// See https://api.dart.dev/dart-developer/dart-developer-library.html.
5151
Future<Response> callServiceExtension(String method, {
5252
String? isolateId,
5353
Map<String, dynamic>? args

runtime/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ However the main difference between these lies in when and how VM converts Dart
6868

6969
Any Dart code within the VM is running within some _isolate_, which can be best described as an isolated Dart universe with its own global state and _usually_ with its own thread of control (*mutator thread*). Isolates are grouped together into _isolate groups_. Isolate within the group share the same garbage collector managed *heap*, used as a storage for objects allocated by an isolate. Heap sharing between isolates in the same group is an implementation detail which is not observable from the Dart code. Even isolates within the same group can not share any mutable state directly and can only communicate by message passing through *ports* (not to be confused with network ports!).
7070

71-
Isolates within a group share the same Dart program. [`Isolate.spawn`](https://api.dart.dev/stable/dart-isolate/Isolate/spawn.html) spawns an isolate within the same group, while [`Isolate.spawnUri`](https://api.dart.dev/stable/dart-isolate/Isolate/spawnUri.html) starts a new group.
71+
Isolates within a group share the same Dart program. [`Isolate.spawn`](https://api.dart.dev/dart-isolate/Isolate/spawn.html) spawns an isolate within the same group, while [`Isolate.spawnUri`](https://api.dart.dev/dart-isolate/Isolate/spawnUri.html) starts a new group.
7272

7373
The relationship between OS threads and isolates is a bit blurry and highly dependent on how VM is embedded into an application. Only the following is guaranteed:
7474

samples/ffi/sqlite/docs/sqlite-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ In this minitutorial we used these `dart:ffi` features:
213213
* Manipulating C memory through `Pointer`s with `allocate`, `free`, `load`, `store`, and `elementAt`.
214214

215215
There are many `dart:ffi` features not covered in this tutorial.
216-
Please refer to the [API documentation](https://api.dart.dev/stable/dart-ffi/dart-ffi-library.html) for more info.
216+
Please refer to the [API documentation](https://api.dart.dev/dart-ffi/dart-ffi-library.html) for more info.
217217

218218
Feature which `dart:ffi` does not support:
219219

sdk/lib/html/dart2js/html_dart2js.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30133,7 +30133,7 @@ class StaticRange extends JavaScriptObject {
3013330133
* window.localStorage['key3'] = 'val3';
3013430134
* assert(window.localStorage['key3'] == 'val3');
3013530135
*
30136-
* You can use [Map](https://api.dart.dev/stable/dart-core/Map-class.html) APIs
30136+
* You can use [Map](https://api.dart.dev/dart-core/Map-class.html) APIs
3013730137
* such as containsValue(), clear(), and length:
3013830138
*
3013930139
* assert(window.localStorage.containsValue('does not exist') == false);

tools/dom/templates/html/impl/impl_Storage.darttemplate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ part of $LIBRARYNAME;
1616
* window.localStorage['key3'] = 'val3';
1717
* assert(window.localStorage['key3'] == 'val3');
1818
*
19-
* You can use [Map](https://api.dart.dev/stable/dart-core/Map-class.html) APIs
19+
* You can use [Map](https://api.dart.dev/dart-core/Map-class.html) APIs
2020
* such as containsValue(), clear(), and length:
2121
*
2222
* assert(window.localStorage.containsValue('does not exist') == false);

0 commit comments

Comments
 (0)