From 4c1ccb77230409e3bea159c73f77375da9f831a1 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:21:37 -0700 Subject: [PATCH] docs: 0.13.0 Changelog (#4785) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jonathan --- CHANGELOG.md | 19 +++++++++++---- Cargo.lock | 24 +++++++++---------- Cargo.toml | 2 +- lutra/lutra/Cargo.toml | 2 +- prqlc/bindings/elixir/native/prql/Cargo.toml | 2 +- prqlc/bindings/js/package-lock.json | 4 ++-- prqlc/bindings/js/package.json | 2 +- prqlc/packages/snap/snapcraft.yaml | 2 +- prqlc/prqlc-macros/Cargo.toml | 2 +- prqlc/prqlc/Cargo.toml | 2 +- prqlc/prqlc/src/cli/docs_generator.rs | 2 +- prqlc/prqlc/tests/integration/sql.rs | 4 ++-- web/book/src/project/target.md | 2 +- ...on__book__project__target__version__1.snap | 2 +- web/playground/package-lock.json | 6 ++--- web/playground/package.json | 2 +- 16 files changed, 44 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04c897afe081..8750bdeb0490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # PRQL Changelog -## [unreleased] +## 0.13.0 — 2024-07-25 + +0.13.0 brings a new debug logging framework, a big refactor of the parser, a new +highlighter, a few bug fixes, and lots of other changes. It has 153 commits from +11 contributors. + +Our work continues on rewriting the resolver and completing `prqlc fmt`. + +Selected changes: **Language**: @@ -20,6 +28,8 @@ **Features**: +- `prqlc compile --debug-log=log.html` will generate an HTML file with a + detailed log of the compilation process. (@aljazerzen, #4646) - Added `prqlc debug json-schema` command to auto-generate JSON Schema representations of commonly exposed IR types such as PL and RQ. (@kgutwin, #4698) @@ -34,12 +44,11 @@ constant `false` condition instead of an `expr IN ()`, which is syntactically invalid in some SQL dialects (@Globidev, #4598) -**Documentation**: - -**Web**: - **Integrations**: +- The Snap package previously released on the edge channel is now released on + the stable channel. (@vanillajonathan, #4784) + **Internal changes**: - Major reorganization of `prqlc-parser` — `prqlc-ast` is merged into diff --git a/Cargo.lock b/Cargo.lock index 935fdbd4c42f..6b5ca470a99b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1021,7 +1021,7 @@ dependencies = [ [[package]] name = "compile-files" -version = "0.12.3" +version = "0.13.0" dependencies = [ "prqlc", ] @@ -2214,7 +2214,7 @@ dependencies = [ [[package]] name = "lutra" -version = "0.12.3" +version = "0.13.0" dependencies = [ "anyhow", "arrow 51.0.0", @@ -2231,7 +2231,7 @@ dependencies = [ [[package]] name = "lutra-python" -version = "0.12.3" +version = "0.13.0" dependencies = [ "arrow 51.0.0", "itertools 0.13.0", @@ -2292,7 +2292,7 @@ dependencies = [ [[package]] name = "mdbook-prql" -version = "0.12.3" +version = "0.13.0" dependencies = [ "ansi-to-html", "anstream", @@ -2934,7 +2934,7 @@ dependencies = [ [[package]] name = "prql" -version = "0.12.3" +version = "0.13.0" dependencies = [ "prqlc", "rustler", @@ -2942,7 +2942,7 @@ dependencies = [ [[package]] name = "prql-java" -version = "0.12.3" +version = "0.13.0" dependencies = [ "jni", "prqlc", @@ -2950,7 +2950,7 @@ dependencies = [ [[package]] name = "prqlc" -version = "0.12.3" +version = "0.13.0" dependencies = [ "anstream", "anyhow", @@ -3005,7 +3005,7 @@ dependencies = [ [[package]] name = "prqlc-c" -version = "0.12.3" +version = "0.13.0" dependencies = [ "libc", "prqlc", @@ -3014,7 +3014,7 @@ dependencies = [ [[package]] name = "prqlc-js" -version = "0.12.3" +version = "0.13.0" dependencies = [ "console_error_panic_hook", "prqlc", @@ -3024,7 +3024,7 @@ dependencies = [ [[package]] name = "prqlc-macros" -version = "0.12.3" +version = "0.13.0" dependencies = [ "prqlc", "syn 2.0.72", @@ -3032,7 +3032,7 @@ dependencies = [ [[package]] name = "prqlc-parser" -version = "0.12.3" +version = "0.13.0" dependencies = [ "chumsky", "enum-as-inner", @@ -3050,7 +3050,7 @@ dependencies = [ [[package]] name = "prqlc-python" -version = "0.12.3" +version = "0.13.0" dependencies = [ "insta", "prqlc", diff --git a/Cargo.toml b/Cargo.toml index cfea82f7037a..30ec8eddfd11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ repository = "https://github.com/PRQL/prql" # This isn't tested since `cargo-msrv` doesn't support workspaces; instead we # test `metadata.msrv` in `prqlc` rust-version = "1.70.0" -version = "0.12.3" +version = "0.13.0" [profile.release] # Optimize for binary size in releases of all crates, diff --git a/lutra/lutra/Cargo.toml b/lutra/lutra/Cargo.toml index 02cf442404bb..1885041a3d75 100644 --- a/lutra/lutra/Cargo.toml +++ b/lutra/lutra/Cargo.toml @@ -32,7 +32,7 @@ connector_arrow = {version = "0.4.2", features = ["src_sqlite"]} env_logger = "0.10.2" itertools = {workspace = true} log = {workspace = true} -prqlc = {path = "../../prqlc/prqlc", version = "0.12.3", default-features = false} +prqlc = {path = "../../prqlc/prqlc", version = "0.13.0", default-features = false} rusqlite = {version = "0.31.0", features = ["bundled"]} walkdir = "2.5.0" diff --git a/prqlc/bindings/elixir/native/prql/Cargo.toml b/prqlc/bindings/elixir/native/prql/Cargo.toml index bc34331897cf..30c397f66227 100644 --- a/prqlc/bindings/elixir/native/prql/Cargo.toml +++ b/prqlc/bindings/elixir/native/prql/Cargo.toml @@ -21,5 +21,5 @@ test = false # See Readme for details on Mac [target.'cfg(not(any(target_family="wasm", target_os = "macos")))'.dependencies] -prqlc = {path = "../../../../prqlc", default-features = false, version = "0.12.3"} +prqlc = {path = "../../../../prqlc", default-features = false, version = "0.13.0" } rustler = "0.34.0" diff --git a/prqlc/bindings/js/package-lock.json b/prqlc/bindings/js/package-lock.json index 4d7f5f4bec92..7220749c4055 100644 --- a/prqlc/bindings/js/package-lock.json +++ b/prqlc/bindings/js/package-lock.json @@ -1,12 +1,12 @@ { "name": "prqlc", - "version": "0.12.3", + "version": "0.13.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "prqlc", - "version": "0.12.3", + "version": "0.13.0", "license": "Apache-2.0", "devDependencies": { "chai": "^5.0.0", diff --git a/prqlc/bindings/js/package.json b/prqlc/bindings/js/package.json index 09bfe054a7d2..4d11b6390264 100644 --- a/prqlc/bindings/js/package.json +++ b/prqlc/bindings/js/package.json @@ -35,5 +35,5 @@ "test": "mocha tests" }, "types": "dist/node/prqlc_js.d.ts", - "version": "0.12.3" + "version": "0.13.0" } diff --git a/prqlc/packages/snap/snapcraft.yaml b/prqlc/packages/snap/snapcraft.yaml index e72a0ac48920..ffa303826a22 100644 --- a/prqlc/packages/snap/snapcraft.yaml +++ b/prqlc/packages/snap/snapcraft.yaml @@ -1,7 +1,7 @@ name: prqlc title: PRQL Compiler base: core22 -version: "0.12.2" +version: "0.13.0" summary: CLI for PRQL, a modern language for transforming data description: | prqlc is the CLI for the PRQL compiler. It compiles PRQL to SQL, and offers various diagnostics. diff --git a/prqlc/prqlc-macros/Cargo.toml b/prqlc/prqlc-macros/Cargo.toml index a6a7ae90028a..5bd5bcc0a01e 100644 --- a/prqlc/prqlc-macros/Cargo.toml +++ b/prqlc/prqlc-macros/Cargo.toml @@ -15,7 +15,7 @@ proc-macro = true test = false [dependencies] -prqlc = {path = "../prqlc", default-features = false, version = "0.12.3"} +prqlc = {path = "../prqlc", default-features = false, version = "0.13.0" } syn = "2.0.72" [package.metadata.release] diff --git a/prqlc/prqlc/Cargo.toml b/prqlc/prqlc/Cargo.toml index ce27712a3f01..afa6752074f8 100644 --- a/prqlc/prqlc/Cargo.toml +++ b/prqlc/prqlc/Cargo.toml @@ -38,7 +38,7 @@ test-dbs = ["anyhow", "duckdb", "rusqlite", "tokio"] test-dbs-external = ["mysql", "pg_bigdecimal", "postgres", "test-dbs", "tiberius", "tokio-util"] [dependencies] -prqlc-parser = {path = "../prqlc-parser", version = "0.12.3"} +prqlc-parser = {path = "../prqlc-parser", version = "0.13.0" } anstream = {version = "0.6.14", features = ["auto"]} ariadne = "0.4.1" diff --git a/prqlc/prqlc/src/cli/docs_generator.rs b/prqlc/prqlc/src/cli/docs_generator.rs index 4af6f5c43525..ea218d946ed4 100644 --- a/prqlc/prqlc/src/cli/docs_generator.rs +++ b/prqlc/prqlc/src/cli/docs_generator.rs @@ -406,7 +406,7 @@ mod tests { - Generated with [prqlc](https://prql-lang.org/) 0.12.3. + Generated with [prqlc](https://prql-lang.org/) 0.13.0. ----- stderr ----- "###); diff --git a/prqlc/prqlc/tests/integration/sql.rs b/prqlc/prqlc/tests/integration/sql.rs index 7a9692076852..3a4f2f00bd98 100644 --- a/prqlc/prqlc/tests/integration/sql.rs +++ b/prqlc/prqlc/tests/integration/sql.rs @@ -4453,7 +4453,7 @@ fn prql_version() { "#).unwrap(),@r###" SELECT *, - '0.12.3' AS y + '0.13.0' AS y FROM x "###); @@ -4464,7 +4464,7 @@ fn shortest_prql_version() { assert_snapshot!(compile(r#"[{version = prql.version}]"#).unwrap(),@r###" WITH table_0 AS ( SELECT - '0.12.3' AS version + '0.13.0' AS version ) SELECT version diff --git a/web/book/src/project/target.md b/web/book/src/project/target.md index e5051e3b7111..1ab7244a684a 100644 --- a/web/book/src/project/target.md +++ b/web/book/src/project/target.md @@ -80,7 +80,7 @@ echo 'prql target:sql.generic PRQL allows specifying a version of the language in the PRQL header, like: ```prql -prql version:"0.12.3" +prql version:"0.13.0" from employees ``` diff --git a/web/book/tests/documentation/snapshots/documentation__book__project__target__version__1.snap b/web/book/tests/documentation/snapshots/documentation__book__project__target__version__1.snap index d7db4cc063b1..5b71863fb23e 100644 --- a/web/book/tests/documentation/snapshots/documentation__book__project__target__version__1.snap +++ b/web/book/tests/documentation/snapshots/documentation__book__project__target__version__1.snap @@ -4,7 +4,7 @@ expression: "[{version = prql.version}]\n" --- WITH table_0 AS ( SELECT - '0.12.3' AS version + '0.13.0' AS version ) SELECT version diff --git a/web/playground/package-lock.json b/web/playground/package-lock.json index b4ae764fb61c..b61aa0c7f76e 100644 --- a/web/playground/package-lock.json +++ b/web/playground/package-lock.json @@ -1,12 +1,12 @@ { "name": "prql-playground", - "version": "0.12.3", + "version": "0.13.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "prql-playground", - "version": "0.12.3", + "version": "0.13.0", "dependencies": { "@duckdb/duckdb-wasm": "^1.28.0", "@monaco-editor/react": "^4.6.0", @@ -30,7 +30,7 @@ }, "../../prqlc/bindings/js": { "name": "prqlc", - "version": "0.12.3", + "version": "0.13.0", "license": "Apache-2.0", "devDependencies": { "chai": "^5.0.0", diff --git a/web/playground/package.json b/web/playground/package.json index 3443ce9fe809..7ba4d7ff0889 100644 --- a/web/playground/package.json +++ b/web/playground/package.json @@ -47,5 +47,5 @@ "prepare": "rsync -ai --checksum --delete ../../prqlc/prqlc/tests/integration/data/ public/data/ && node generateBook.cjs", "preview": "vite preview" }, - "version": "0.12.3" + "version": "0.13.0" }