Skip to content

Commit 2709ab4

Browse files
richb-hanoverpre-commit-ci[bot]max-sixty
authored
ci: Upgrade the VSCode extension to 0.12.2 (#531)
* Upgrade the VSCode extention to 0.12.2; First cut at DEPLOYING.md - needs careful vetting; "Development" section could use a bit of help to make it easier for newcomers to figure out how to modify the extension * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update README.md to describe the deployment process; Remove DEPLOYING.md (now part of README); Update `prqlc` version in dependencies; Updated `version` for the extension itself; Fix name of `prqlc` in src.compiler.ts * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Mention change from `prql-js` to `prqlc` in Changelog; Mention Changelog in README * Update README.md * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Maximilian Roos <[email protected]>
1 parent 05a12af commit 2709ab4

File tree

7 files changed

+95
-62
lines changed

7 files changed

+95
-62
lines changed

.github/workflows/pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 16
22+
node-version: 20
2323
- run: npm ci
2424
- run: npm run compile
2525

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 16
14+
node-version: 20
1515
- run: npm ci
1616
- uses: HaaLeo/publish-vscode-extension@v1
1717
with:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ here. Instead see [releases](https://github.com/PRQL/prql-vscode/releases) for a
55
brief summary of added extension features, extension source code zip archive,
66
and `prql-vscode-x.x.x.vsix` extension package download.
77

8+
## 0.12.2 - 2024-06-11
9+
10+
- Bump to 0.12.2
11+
- Change dependency name to `prqlc` (from `prql-js`)
12+
13+
## 0.11.3 - 2024-02-12
14+
15+
- Bump to 0.11.3
16+
817
## 0.9.0
918

1019
### Breaking changes

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,26 @@ The `prql.target` extension setting default option value is `Generic`, which wil
6464

6565
You can also disable this PRQL compiler option in vscode extension by setting `prql.target` to `Any`. When `prql.target` is set to `Any`, PRQL compiler will read the target SQL dialect from `.prql` file header as described in [PRQL Language Book](https://prql-lang.org/book/project/target.html). For example, setting `prql.target` to `Any` and adding `prql target:sql.postgres` on the first line of your `.prql` query file will produce SQL for `PostgreSQL` database. Otherwise, `Generic` SQL flavor will be used for the generated SQL.
6666

67-
## Developing
67+
## Deploying the Extension
68+
69+
This repo has the machinery to update the VSCode extension to the Microsoft Marketplace.
70+
71+
When there is a new version of `prqlc` in `npm`, dependabot will PR an update.
72+
Once per day, the _.github/dependabot.yml_ file checks NPM and compares the `dependencies.prqlc` property in _package.json_ to the latest version in NPM. If they differ, dependabot creates a PR for _package.json_.
73+
74+
Once that has been merged, the following manual steps will publish an update for the extension:
75+
76+
- Update the [_CHANGELOG.md_](CHANGELOG.md) file, as needed
77+
78+
- In _package.json_, update the `version` to match. This sets the version number of the extension itself.
79+
80+
- Run `npm install` to update the `package-lock.json`
81+
82+
- Create a new release from Github. This will start a workflow to release the current version to the VS Code Marketplace.
83+
84+
- NB: From time to time, check the `node-version` in the files*.github/workflows/pull-request.yaml* and _.github/workflows/release.yml_. We track Node.js LTS - version 20 in June 2024.
85+
86+
## Developing the Extension
6887

6988
- Clone the repository and install dependencies:
7089

package-lock.json

Lines changed: 61 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"url": "https://github.com/prql/prql-vscode.git"
77
},
88
"publisher": "prql-lang",
9-
"version": "0.11.4",
9+
"version": "0.12.2",
1010
"icon": "resources/prql-logo.png",
1111
"engines": {
1212
"vscode": "^1.65.0"
@@ -204,7 +204,7 @@
204204
},
205205
"dependencies": {
206206
"@types/vscode": "^1.90.0",
207-
"prql-js": "^0.12.1",
207+
"prqlc": "^0.12.2",
208208
"shiki": "^0.14.7"
209209
}
210210
}

src/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { workspace, WorkspaceConfiguration } from 'vscode';
22

3-
import * as prql from 'prql-js';
3+
import * as prql from 'prqlc';
44
import * as constants from './constants';
55

66
export function compile(prqlString: string): string | ErrorMessage[] {

0 commit comments

Comments
 (0)