Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 6 additions & 4 deletions dwds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
## 28.0.0

- Support expression evaluation in Frontend Server + Build Daemon mode via `DaemonExpressionCompiler`.
- Add `WebPathTranslator` to support path translation between Frontend Server and Build Daemon.
- Replace `PackageUriMapper` with `PathResolver` strategy.
- **Breaking Change**: Removed `PackageUriMapper` in favor of **`PathResolver`** - with `BuildRunnerPathResolver`, `FrontendServerPathResolver`, and `FlutterPathResolver` impls.
- **Breaking Change**: **`LoadStrategy`** implementors must now implement the **`assetScheme`** getter.
- Introduce **`AssetScheme`** to generalize asset naming schemes.
- Add support for Frontend Server + Build Daemon configuration with hot reload via **`FrontendServerBuildDaemonStrategyProvider`**.
- Expose **`DaemonExpressionCompiler`** for handling expression compilation directly via `build_daemon`.
- **`BuildSettings`** now supports **`useDebuggerModuleNames`** to distinguish between debugger-friendly paths and raw server paths.

## Unreleased

Expand Down
7 changes: 7 additions & 0 deletions dwds/test/integration/breakpoint_ddc_library_bundle_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ void main() {
);
});

group('Build Daemon and Frontend Server |', () {
testBreakpoint(
provider: provider,
compilationMode: CompilationMode.buildDaemonAndFrontendServer,
);
});

group('Frontend Server |', () {
testBreakpoint(
provider: provider,
Expand Down
7 changes: 7 additions & 0 deletions dwds/test/integration/callstack_ddc_library_bundle_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ void main() {
);
});

group('Build Daemon and Frontend Server |', () {
testCallStack(
provider: provider,
compilationMode: CompilationMode.buildDaemonAndFrontendServer,
);
});

group('Frontend Server |', () {
testCallStack(
provider: provider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,21 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: $canaryFeatures | Build Daemon and Frontend Server |', () {
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: moduleFormat,
);
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
tearDownAll(provider.dispose);

runTests(
provider: provider,
moduleFormat: moduleFormat,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ void main() async {
testAll(provider: provider, compilationMode: CompilationMode.buildDaemon);
});

group('Build Daemon and Frontend Server |', () {
testAll(
provider: provider,
compilationMode: CompilationMode.buildDaemonAndFrontendServer,
);
});

group('Frontend Server |', () {
group('Context with circular dependencies |', () {
for (final indexBaseMode in IndexBaseMode.values) {
Expand Down
4 changes: 2 additions & 2 deletions dwds/test/integration/dart_uri_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ void main() {

test('parses org-dartlang-app paths', () {
final uri = DartUri('org-dartlang-app:///blah/main.dart');
expect(uri.serverPath, '/blah/main.dart');
expect(uri.serverPath, 'blah/main.dart');
});

test('parses google3 paths', () {
final uri = DartUri('google3:///blah/main.dart');
expect(uri.serverPath, '/blah/main.dart');
expect(uri.serverPath, 'blah/main.dart');
});

test('parses packages paths', () {
Expand Down
7 changes: 7 additions & 0 deletions dwds/test/integration/evaluate_ddc_library_bundle_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ void main() async {
testAll(provider: provider, compilationMode: CompilationMode.buildDaemon);
});

group('Build Daemon and Frontend Server |', () {
testAll(
provider: provider,
compilationMode: CompilationMode.buildDaemonAndFrontendServer,
);
});

group('Frontend Server |', () {
for (final useDebuggerModuleNames in [false, true]) {
group('Debugger module names: $useDebuggerModuleNames |', () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,11 @@ void main() {
compilationMode: CompilationMode.frontendServer,
);
});

group('Build Daemon and Frontend Server', () {
runTests(
provider: provider,
compilationMode: CompilationMode.buildDaemonAndFrontendServer,
);
});
}
7 changes: 7 additions & 0 deletions dwds/test/integration/hot_reload_ddc_library_bundle_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,11 @@ void main() {
compilationMode: CompilationMode.frontendServer,
);
});

group('Build Daemon and Frontend Server', () {
runTests(
provider: provider,
compilationMode: CompilationMode.buildDaemonAndFrontendServer,
);
});
}
35 changes: 0 additions & 35 deletions dwds/test/integration/hot_restart_breakpoints_amd_test.dart

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ void main() {
group('Build Daemon', () {
runTests(provider: provider, compilationMode: CompilationMode.buildDaemon);
});

group('Build Daemon and Frontend Server', () {
runTests(
provider: provider,
compilationMode: CompilationMode.buildDaemonAndFrontendServer,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,19 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: $canaryFeatures | Build Daemon and Frontend Server |', () {
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: moduleFormat,
);
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
runTests(
provider: provider,
moduleFormat: moduleFormat,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
15 changes: 15 additions & 0 deletions dwds/test/integration/hot_restart_ddc_library_bundle_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,19 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: $canaryFeatures | Build Daemon and Frontend Server |', () {
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: moduleFormat,
);
runTests(
provider: provider,
moduleFormat: moduleFormat,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,21 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: true | Build Daemon and Frontend Server |', () {
final canaryFeatures = true;
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: ModuleFormat.ddc,
);
tearDownAll(provider.dispose);

runTests(
provider: provider,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,21 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: true | Build Daemon and Frontend Server |', () {
final canaryFeatures = true;
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: ModuleFormat.ddc,
);
tearDownAll(provider.dispose);

runTests(
provider: provider,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,20 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: true | Build Daemon and Frontend Server |', () {
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
final provider = TestSdkConfigurationProvider(
canaryFeatures: canaryFeatures,
verbose: debug,
ddcModuleFormat: moduleFormat,
);
tearDownAll(provider.dispose);

runTests(
provider: provider,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,38 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: true | Build Daemon |', () {
final canaryFeatures = true;
final compilationMode = CompilationMode.buildDaemon;
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: ModuleFormat.ddc,
);
tearDownAll(provider.dispose);

runTests(
provider: provider,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});

group('canary: true | Build Daemon and Frontend Server |', () {
final canaryFeatures = true;
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: ModuleFormat.ddc,
);
tearDownAll(provider.dispose);

runTests(
provider: provider,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,21 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: true | Build Daemon and Frontend Server |', () {
final canaryFeatures = true;
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: ModuleFormat.ddc,
);
tearDownAll(provider.dispose);

runTests(
provider: provider,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,19 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: true | Build Daemon and Frontend Server |', () {
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: ModuleFormat.ddc,
);
tearDownAll(provider.dispose);
runTests(
provider: provider,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,19 @@ void main() {
canaryFeatures: canaryFeatures,
);
});

group('canary: true | Build Daemon and Frontend Server |', () {
final compilationMode = CompilationMode.buildDaemonAndFrontendServer;
final provider = TestSdkConfigurationProvider(
verbose: debug,
canaryFeatures: canaryFeatures,
ddcModuleFormat: ModuleFormat.ddc,
);
tearDownAll(provider.dispose);
runTests(
provider: provider,
compilationMode: compilationMode,
canaryFeatures: canaryFeatures,
);
});
}
Loading
Loading