diff --git a/.changeset/arrow-function-calls.md b/.changeset/arrow-function-calls.md deleted file mode 100644 index fcb60f25..00000000 --- a/.changeset/arrow-function-calls.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"jsoniq-language-server": minor ---- - -Treat the function after an arrow (`=>`) as a call that receives the left operand as its first argument, as XQuery 3.1 defines it: `$x => f(1)` calls `f($x, 1)`. - -- Go to definition, hover, references and rename now work on the function name after `=>`. Renaming a function used to leave its arrow uses unchanged. -- An arrow to an undefined function, or with the wrong number of arguments, is now reported. -- Signature help writes an arrow step the way it is called, `$sourceString => substring($start)`, and starts at the second parameter. Hover on the name says which parameter the operand fills. -- Completing a function name after `=>` inserts the call without the parameter the operand fills, and leaves out functions without parameters. -- File paths complete in the operand of `"data.json" => json-lines()`. -- Completing `concat` inserts two arguments instead of a literal `$...` placeholder. diff --git a/.changeset/ensure-wrapper-flag.md b/.changeset/ensure-wrapper-flag.md deleted file mode 100644 index e321a43b..00000000 --- a/.changeset/ensure-wrapper-flag.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"jsoniq-language-server": minor ---- - -Add `--ensure-wrapper` to the server, which downloads the RumbleDB wrapper JAR unless it is cached, prints the command that starts it, and exits. Run it to download the JAR ahead of time, for example when building an image: `node dist/bundled/main.mjs --ensure-wrapper`. It replaces the `dist/integrations/rumble/executable/ensure-wrapper.mjs` script. diff --git a/.changeset/notebook-cell-base-uri.md b/.changeset/notebook-cell-base-uri.md deleted file mode 100644 index 0e0ef977..00000000 --- a/.changeset/notebook-cell-base-uri.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"jsoniq-language-server": patch ---- - -Resolve the relative paths of a notebook cell against its notebook, as when the cell runs. RumbleDB was given the cell's `vscode-notebook-cell:` URI as the base URI, so reading a file such as `delta-file("table")` failed with "No file system is configured for scheme vscode-notebook-cell". Module imports, schema locations and file path completion in cells also resolve next to the notebook now. diff --git a/.changeset/wrapper-maven-dependency.md b/.changeset/wrapper-maven-dependency.md deleted file mode 100644 index a45c001d..00000000 --- a/.changeset/wrapper-maven-dependency.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"rumble-lsp-wrapper": patch -"jsoniq-language-server": patch ---- - -Build the wrapper jar with RumbleDB as a regular Maven dependency. The jar now contains a single version of each library: it used to mix classes from two versions of some, such as `jackson-core` 2.18.2 and 2.18.6. diff --git a/packages/language-server/CHANGELOG.md b/packages/language-server/CHANGELOG.md index 648ef9a6..cbcd67d9 100644 --- a/packages/language-server/CHANGELOG.md +++ b/packages/language-server/CHANGELOG.md @@ -1,5 +1,26 @@ # jsoniq-language-server +## 2.21.0 + +### Minor Changes + +- [#145](https://github.com/RumbleDB/language-tools/pull/145) [`75533ed`](https://github.com/RumbleDB/language-tools/commit/75533ede745572765b4893e8beae18dfb2118a3e) - Treat the function after an arrow (`=>`) as a call that receives the left operand as its first argument, as XQuery 3.1 defines it: `$x => f(1)` calls `f($x, 1)`. + + - Go to definition, hover, references and rename now work on the function name after `=>`. Renaming a function used to leave its arrow uses unchanged. + - An arrow to an undefined function, or with the wrong number of arguments, is now reported. + - Signature help writes an arrow step the way it is called, `$sourceString => substring($start)`, and starts at the second parameter. Hover on the name says which parameter the operand fills. + - Completing a function name after `=>` inserts the call without the parameter the operand fills, and leaves out functions without parameters. + - File paths complete in the operand of `"data.json" => json-lines()`. + - Completing `concat` inserts two arguments instead of a literal `$...` placeholder. + +- [#150](https://github.com/RumbleDB/language-tools/pull/150) [`a34f11f`](https://github.com/RumbleDB/language-tools/commit/a34f11f48b08a9a45e24162a405763c76a601ad3) - Add `--ensure-wrapper` to the server, which downloads the RumbleDB wrapper JAR unless it is cached, prints the command that starts it, and exits. Run it to download the JAR ahead of time, for example when building an image: `node dist/bundled/main.mjs --ensure-wrapper`. It replaces the `dist/integrations/rumble/executable/ensure-wrapper.mjs` script. + +### Patch Changes + +- [#149](https://github.com/RumbleDB/language-tools/pull/149) [`22ba7e0`](https://github.com/RumbleDB/language-tools/commit/22ba7e09f865b2203e1fb18f437dab554facc760) - Resolve the relative paths of a notebook cell against its notebook, as when the cell runs. RumbleDB was given the cell's `vscode-notebook-cell:` URI as the base URI, so reading a file such as `delta-file("table")` failed with "No file system is configured for scheme vscode-notebook-cell". Module imports, schema locations and file path completion in cells also resolve next to the notebook now. + +- [#148](https://github.com/RumbleDB/language-tools/pull/148) [`7ff9827`](https://github.com/RumbleDB/language-tools/commit/7ff98273c3f2caf8154a7762f8fbbc0ebc3fc22f) - Build the wrapper jar with RumbleDB as a regular Maven dependency. The jar now contains a single version of each library: it used to mix classes from two versions of some, such as `jackson-core` 2.18.2 and 2.18.6. + ## 2.20.2 ### Patch Changes diff --git a/packages/language-server/package.json b/packages/language-server/package.json index a9427047..ec48d68d 100644 --- a/packages/language-server/package.json +++ b/packages/language-server/package.json @@ -1,6 +1,6 @@ { "name": "jsoniq-language-server", - "version": "2.20.2", + "version": "2.21.0", "private": false, "license": "Apache-2.0", "repository": { diff --git a/packages/rumble-lsp-wrapper/CHANGELOG.md b/packages/rumble-lsp-wrapper/CHANGELOG.md index 5cf48b75..f568f47c 100644 --- a/packages/rumble-lsp-wrapper/CHANGELOG.md +++ b/packages/rumble-lsp-wrapper/CHANGELOG.md @@ -1,5 +1,11 @@ # rumble-lsp-wrapper +## 0.16.2 + +### Patch Changes + +- [#148](https://github.com/RumbleDB/language-tools/pull/148) [`7ff9827`](https://github.com/RumbleDB/language-tools/commit/7ff98273c3f2caf8154a7762f8fbbc0ebc3fc22f) - Build the wrapper jar with RumbleDB as a regular Maven dependency. The jar now contains a single version of each library: it used to mix classes from two versions of some, such as `jackson-core` 2.18.2 and 2.18.6. + ## 0.16.1 ### Patch Changes diff --git a/packages/rumble-lsp-wrapper/package.json b/packages/rumble-lsp-wrapper/package.json index 2e1192b5..75b26d14 100644 --- a/packages/rumble-lsp-wrapper/package.json +++ b/packages/rumble-lsp-wrapper/package.json @@ -1,6 +1,6 @@ { "name": "rumble-lsp-wrapper", - "version": "0.16.1", + "version": "0.16.2", "private": true, "license": "Apache-2.0", "repository": { diff --git a/packages/vscode-extension/CHANGELOG.md b/packages/vscode-extension/CHANGELOG.md index c8f5d874..7452e031 100644 --- a/packages/vscode-extension/CHANGELOG.md +++ b/packages/vscode-extension/CHANGELOG.md @@ -1,5 +1,12 @@ # jsoniq-vscode +## 1.15.4 + +### Patch Changes + +- Updated dependencies [[`75533ed`](https://github.com/RumbleDB/language-tools/commit/75533ede745572765b4893e8beae18dfb2118a3e), [`a34f11f`](https://github.com/RumbleDB/language-tools/commit/a34f11f48b08a9a45e24162a405763c76a601ad3), [`22ba7e0`](https://github.com/RumbleDB/language-tools/commit/22ba7e09f865b2203e1fb18f437dab554facc760), [`7ff9827`](https://github.com/RumbleDB/language-tools/commit/7ff98273c3f2caf8154a7762f8fbbc0ebc3fc22f)]: + - jsoniq-language-server@2.21.0 + ## 1.15.3 ### Patch Changes diff --git a/packages/vscode-extension/package.json b/packages/vscode-extension/package.json index 315392a0..771b4839 100644 --- a/packages/vscode-extension/package.json +++ b/packages/vscode-extension/package.json @@ -1,7 +1,7 @@ { "name": "jsoniq-vscode", "displayName": "JSONiq and XQuery Language Support", - "version": "1.15.3", + "version": "1.15.4", "private": true, "description": "Language support for JSONiq and XQuery: completion, type checking, inferred types on hover, syntax highlighting, and running queries with RumbleDB.", "categories": [