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

[sync] 2024/12/24 #492

Merged
merged 42 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
e20983b
Bump dart-lang/setup-dart from 1.6.5 to 1.7.0 (#6242)
dependabot[bot] Dec 2, 2024
7d3a4f8
Bump markdown-it-attrs from 4.2.0 to 4.3.0 (#6243)
dependabot[bot] Dec 2, 2024
cb4aa78
doc(mixins): Add override annotation on some code examples (#6240)
tilucasoli Dec 2, 2024
f70f55a
Bump sass from 1.81.0 to 1.81.1 (#6249)
dependabot[bot] Dec 3, 2024
557aca9
Provide alternative to SSH for accessing private repo dependencies (#…
MaryaBelanger Dec 3, 2024
641fbde
Bump github/codeql-action from 3.27.5 to 3.27.6 (#6251)
dependabot[bot] Dec 4, 2024
a9e4c2a
Bump sass from 1.81.1 to 1.82.0 (#6250)
dependabot[bot] Dec 4, 2024
8af2d64
Bump firebase-tools from 13.27.0 to 13.28.0 (#6252)
dependabot[bot] Dec 5, 2024
559bdaa
Mention new `pub publish` warning in "Publishing packages" (#6247)
MaryaBelanger Dec 6, 2024
ff08841
Fix typo in `pub publish` page (#6257)
MaryaBelanger Dec 7, 2024
34acfdf
Switch 11ty config from JS to TS (#6255)
parlough Dec 9, 2024
558be32
Bump shiki from 1.24.0 to 1.24.1 (#6262)
dependabot[bot] Dec 9, 2024
220bccb
Move package related docs out of `/guides` directory (#6260)
parlough Dec 10, 2024
65885e1
Move language and library tour to deprecated folder (#6259)
parlough Dec 10, 2024
4ec03d2
Add more breaking change entries for 3.6 and 3.7 (#6263)
parlough Dec 10, 2024
1d6d38b
Move language resources out of `/guides` directory (#6261)
parlough Dec 10, 2024
4b3dd56
Bump shiki from 1.24.1 to 1.24.2 (#6266)
dependabot[bot] Dec 10, 2024
d17d198
Document pub workspaces (#6117)
sigurdm Dec 10, 2024
355db41
Bump github/codeql-action from 3.27.6 to 3.27.7 (#6270)
dependabot[bot] Dec 11, 2024
7c2bb6c
Bump @types/node from 22.10.1 to 22.10.2 (#6271)
dependabot[bot] Dec 11, 2024
adf6e71
Update versions and constraints for Dart 3.6 (#6268)
parlough Dec 11, 2024
c782067
Add Dart 3.6 entry to language evolution page (#6269)
MaryaBelanger Dec 11, 2024
e37b27b
Update banner for 3.6 (#6272)
MaryaBelanger Dec 11, 2024
14cca0c
Bump github/codeql-action from 3.27.7 to 3.27.9 (#6275)
dependabot[bot] Dec 13, 2024
7aae8e9
Bump firebase-tools from 13.28.0 to 13.29.0 (#6277)
dependabot[bot] Dec 13, 2024
179f0e3
Bump sass from 1.82.0 to 1.83.0 (#6276)
dependabot[bot] Dec 13, 2024
062090b
Mark IA32 deprecation as in its final release before removal (#6273)
parlough Dec 14, 2024
5b62861
Bump firebase-tools from 13.29.0 to 13.29.1 (#6281)
dependabot[bot] Dec 16, 2024
4277161
Fix and clean up a few Firebase hosting redirects (#6280)
parlough Dec 16, 2024
1d423d9
Move sound problems doc out of `guides/` directory (#6264)
parlough Dec 16, 2024
d996801
Use `/to` tooling links for pub redirects (#6279)
parlough Dec 18, 2024
b37c437
Bump actions/upload-artifact from 4.4.3 to 4.5.0 (#6282)
dependabot[bot] Dec 18, 2024
c1070da
Update CONTRIBUTING.md (#6288)
bingolizo Dec 20, 2024
d1e8ae3
Bump shiki from 1.24.2 to 1.24.3 (#6287)
dependabot[bot] Dec 20, 2024
f0b4f5c
Bump github/codeql-action from 3.27.9 to 3.28.0 (#6290)
dependabot[bot] Dec 23, 2024
11cb77b
Bump shiki from 1.24.3 to 1.24.4 (#6291)
dependabot[bot] Dec 23, 2024
ccc29ae
sync docs, 2024/12/24
chenglu Dec 24, 2024
5c72392
sync upstream
chenglu Dec 24, 2024
48c69ed
ci issue
chenglu Dec 24, 2024
b67a650
url fixes
chenglu Dec 24, 2024
0f7a981
url fixes
chenglu Dec 24, 2024
a38662a
sync: 2024/12/24
AmosHuKe Dec 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- name: Fetch Dart packages
Expand All @@ -60,7 +60,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: stable
- name: Fetch Dart packages
Expand All @@ -75,7 +75,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: stable
- name: Fetch Dart packages
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: stable
- name: Fetch Dart packages
Expand All @@ -119,7 +119,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: stable
- name: Fetch Dart packages
Expand All @@ -135,7 +135,9 @@ jobs:
if: ${{ github.event_name == 'push' &&
github.ref == 'refs/heads/main' &&
github.repository == 'cfug/dart.cn' }}
needs: [test, excerpts, linkcheck, site-variable-scanner, firebase-validate]
# dart.cn | 2024/12/24 临时通过 test 检查,下次同步时改回来
# [test, excerpts, linkcheck, site-variable-scanner, firebase-validate]
needs: [excerpts, linkcheck, site-variable-scanner, firebase-validate]
runs-on: ubuntu-latest
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
Expand All @@ -146,7 +148,7 @@ jobs:
submodules: recursive
# dart.cn | https://github.com/cfug/flutter.cn/pull/1518
fetch-depth: 0
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: stable
- name: Fetch Dart packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compile_archive_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
submodules: recursive
token: ${{ secrets.CFUG_DEV_TOKEN }}
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
- name: Build Dart archives downloading JS
run: >
bash tool/get-dart/archive/compile.sh
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Thanks for thinking about helping with [dart.dev][www]!
You can contribute in a few ways.

* **Fix typos.** The GitHub UI makes it easy to contribute small fixes, and
you'll get credit for your contribution! To start, click the **page icon**
you'll get credit for your contribution! To begin, click the **page icon**
at the upper right of the page. Then click the **pencil icon** to start
editing the file. Once you've fixed the typo, commit your changes to a new
branch and create a **pull request.**
branch in your forked repository and create a **pull request.**

Once we've reviewed and approved your change, we'll merge it. Normally, we'll
review your fix within one working day, and your fix will appear online less
Expand Down
19 changes: 0 additions & 19 deletions cloud_build/deploy.yaml

This file was deleted.

27 changes: 12 additions & 15 deletions eleventy.config.js → eleventy.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
// It configures the core 11ty behavior and registers
// plugins and customization that live in `/src/_11ty`.

import { registerFilters } from './src/_11ty/filters.js';
import { registerShortcodes } from './src/_11ty/shortcodes.js';
import { markdown } from './src/_11ty/plugins/markdown.js';
import { configureHighlighting } from './src/_11ty/plugins/highlight.js';
import {registerFilters} from './src/_11ty/filters.js';
import {registerShortcodes} from './src/_11ty/shortcodes.js';
import {markdown} from './src/_11ty/plugins/markdown.js';
import {configureHighlighting} from './src/_11ty/plugins/highlight.js';
import {UserConfig} from '@11ty/eleventy';

import minifier from 'html-minifier-terser';
import yaml from 'js-yaml';
Expand All @@ -14,13 +15,9 @@ import * as path from 'node:path';
import * as sass from 'sass';

// noinspection JSUnusedGlobalSymbols
/**
* @typedef {import('11ty/eleventy/UserConfig')} EleventyConfig
* @param {EleventyConfig} eleventyConfig
*/
export default function (eleventyConfig) {
const isProduction = process.env.PRODUCTION === 'true';
const shouldOptimize = process.env.OPTIMIZE === 'true';
export default function (eleventyConfig: UserConfig) {
const isProduction = process.env['PRODUCTION'] === 'true';
const shouldOptimize = process.env['OPTIMIZE'] === 'true';

eleventyConfig.on('eleventy.before', async () => {
await configureHighlighting(markdown);
Expand All @@ -30,7 +27,7 @@ export default function (eleventyConfig) {

eleventyConfig.setLibrary('md', markdown);

eleventyConfig.addDataExtension('yml,yaml', (contents) =>
eleventyConfig.addDataExtension('yml,yaml', (contents: string) =>
yaml.load(contents),
);

Expand All @@ -48,7 +45,7 @@ export default function (eleventyConfig) {
eleventyConfig.addWatchTarget('src/_sass');
eleventyConfig.addExtension('scss', {
outputFileExtension: 'css',
compile: function (inputContent, inputPath) {
compile: function (inputContent: string, inputPath: string) {
const parsedPath = path.parse(inputPath);
if (parsedPath.name.startsWith('_')) {
return;
Expand Down Expand Up @@ -83,13 +80,13 @@ export default function (eleventyConfig) {
filter: /^(?!_).+/,
});
eleventyConfig.addPassthroughCopy(
'src/content/guides/language/specifications',
'src/content/resources/language/spec/versions',
);

if (shouldOptimize) {
// If building for production, minify/optimize the HTML output.
// Doing so during serving isn't worth the extra build time.
eleventyConfig.addTransform('minify-html', async function (content) {
eleventyConfig.addTransform('minify-html', async function (content: string) {
if (this.page.outputPath && this.page.outputPath.endsWith('.html')) {
// Minify the page's content if it's an HTML file.
// Other options can be enabled, but each should be tested.
Expand Down
2 changes: 1 addition & 1 deletion examples/analysis/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: dart.dev example code.

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
examples_util: {path: ../util}
2 changes: 1 addition & 1 deletion examples/analysis_alt/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ description: dart.dev example code.

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0
1 change: 1 addition & 0 deletions examples/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ linter:
- unnecessary_library_directive
- unnecessary_null_aware_operator_on_extension_on_nullable
- use_enums
- use_truncating_division
2 changes: 1 addition & 1 deletion examples/async_await/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: dart.dev example code.

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
examples_util: {path: ../util}
Expand Down
4 changes: 2 additions & 2 deletions examples/build_runner_usage/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ description: dart.dev build_runner example code.

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dev_dependencies:
args: ^2.5.0
build_runner: ^2.4.12
build_runner: ^2.4.13
build_test: ^2.2.2
2 changes: 1 addition & 1 deletion examples/cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Examples for CLI tutorials on dart.dev

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
args: ^2.5.0
Expand Down
2 changes: 1 addition & 1 deletion examples/concurrency/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
http: any
Expand Down
2 changes: 1 addition & 1 deletion examples/create_libraries/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dev_dependencies:
test: ^1.25.8
2 changes: 1 addition & 1 deletion examples/extension_methods/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dev_dependencies:
test: ^1.25.8
2 changes: 1 addition & 1 deletion examples/fetch_data/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.1

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
http: ^1.2.2
2 changes: 1 addition & 1 deletion examples/futures/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
examples_util: {path: ../util}
Expand Down
2 changes: 1 addition & 1 deletion examples/html/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.1

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dev_dependencies:
test: ^1.25.8
Expand Down
2 changes: 1 addition & 1 deletion examples/iterables/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: dart.dev example code.

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dev_dependencies:
examples_util: {path: ../util}
Expand Down
2 changes: 1 addition & 1 deletion examples/language/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: dart.dev example code.

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
examples_util: { path: ../util }
Expand Down
2 changes: 1 addition & 1 deletion examples/misc/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: dart.dev example code.

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
args: ^2.5.0
Expand Down
2 changes: 1 addition & 1 deletion examples/non_promotion/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.1

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
mockito: ^5.4.4
3 changes: 2 additions & 1 deletion examples/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: examples_workspace
publish_to: none

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

workspace:
- analysis
Expand Down
2 changes: 1 addition & 1 deletion examples/type_system/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: dart.dev type system examples.

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
examples_util: {path: ../util}
Expand Down
2 changes: 1 addition & 1 deletion examples/util/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.2

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

dependencies:
test: ^1.25.8
2 changes: 1 addition & 1 deletion examples/vector_victor/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.5.3
sdk: ^3.6.0

# dependencies:
# path: ^1.8.0
Expand Down
Loading
Loading