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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Versioning](https://semver.org/spec/v2.0.0.html).
resolves the package. See
[#1315](https://github.com/google/wireit/issues/1315).

### Fixed

- The "Expected an object." error for a `service.readyWhen` value that is not
an object now points at the `readyWhen` value instead of the whole `service`
object.

## [0.15.0] - 2026-10-23

### Added
Expand Down
5 changes: 4 additions & 1 deletion src/analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,10 @@ export class Analyzer {
message: `Expected an object.`,
location: {
file: packageJson.jsonFile,
range: {length: serviceNode.length, offset: serviceNode.offset},
range: {
length: waitForNode.length,
offset: waitForNode.offset,
},
},
},
});
Expand Down
8 changes: 2 additions & 6 deletions src/test/errors-analysis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2020,13 +2020,9 @@ void test(
checkScriptOutput(
done.stderr,
`
❌ package.json:8:18 Expected an object.
"service": {
~
❌ package.json:9:22 Expected an object.
"readyWhen": 1
~~~~~~~~~~~~~~~~~~~~~~
}
~~~~~~~`,
~`,
);
}),
);
Expand Down
Loading