From 0e61f8db7828ef2e69e722b09ec9337993f4a449 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 10 Oct 2024 04:06:27 +0200 Subject: [PATCH 1/3] deno 2.0 use frozen for cache --- backend/windmill-worker/src/deno_executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/windmill-worker/src/deno_executor.rs b/backend/windmill-worker/src/deno_executor.rs index fbb875a012..e9ce33a8a6 100644 --- a/backend/windmill-worker/src/deno_executor.rs +++ b/backend/windmill-worker/src/deno_executor.rs @@ -125,7 +125,7 @@ pub async fn generate_deno_lock( "--unstable-worker-options", "--unstable-http", "--lock=lock.json", - "--lock-write", + "--frozen=false", "--import-map", &import_map_path, "main.ts", From cf8d4436030b7ecd7859714e469f7305db09151d Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 9 Oct 2024 19:24:17 -0700 Subject: [PATCH 2/3] chore(main): release 1.407.0 (#4513) * chore(main): release 1.407.0 * Apply automatic changes --------- Co-authored-by: rubenfiszel --- CHANGELOG.md | 12 +++++ backend/Cargo.lock | 52 +++++++++---------- backend/Cargo.toml | 4 +- backend/windmill-api/openapi.yaml | 2 +- benchmarks/lib.ts | 2 +- cli/main.ts | 2 +- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- lsp/Pipfile | 4 +- openflow.openapi.yaml | 2 +- .../WindmillClient/WindmillClient.psd1 | 2 +- python-client/wmill/pyproject.toml | 2 +- python-client/wmill_pg/pyproject.toml | 2 +- typescript-client/jsr.json | 2 +- typescript-client/package.json | 2 +- version.txt | 2 +- 16 files changed, 55 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8bc008a14..86929560ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.407.0](https://github.com/windmill-labs/windmill/compare/v1.406.0...v1.407.0) (2024-10-10) + + +### Features + +* upgrade to deno 2 ([26b11a0](https://github.com/windmill-labs/windmill/commit/26b11a00150acbe101abe4bb542f24379da0cc56)) + + +### Bug Fixes + +* update internal deno runtime to latest (deno 2.0) ([c3a5736](https://github.com/windmill-labs/windmill/commit/c3a57366419882ea2de1938bea592c795b1a1d03)) + ## [1.406.0](https://github.com/windmill-labs/windmill/compare/v1.405.5...v1.406.0) (2024-10-09) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index e5aea58790..7fc1a77ac7 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -1170,9 +1170,9 @@ dependencies = [ [[package]] name = "better_scoped_tls" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "794edcc9b3fb07bb4aecaa11f093fd45663b4feadb782d68303a2268bc2701de" +checksum = "297b153aa5e573b5863108a6ddc9d5c968bd0b20e75cc614ee9821d2f45679c7" dependencies = [ "scoped-tls", ] @@ -8305,9 +8305,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "swc_allocator" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7016ee7a5186d6a80e381aa1926e0f3c7b06eaf444745ff7af3632e978eb8dc5" +checksum = "76aa0eb65c0f39f9b6d82a7e5192c30f7ac9a78f084a21f270de1d8c600ca388" dependencies = [ "bumpalo", "hashbrown 0.14.5", @@ -10358,7 +10358,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windmill" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "axum", @@ -10399,7 +10399,7 @@ dependencies = [ [[package]] name = "windmill-api" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "argon2", @@ -10483,7 +10483,7 @@ dependencies = [ [[package]] name = "windmill-api-client" -version = "1.406.0" +version = "1.407.0" dependencies = [ "base64 0.21.7", "chrono", @@ -10501,7 +10501,7 @@ dependencies = [ [[package]] name = "windmill-audit" -version = "1.406.0" +version = "1.407.0" dependencies = [ "chrono", "serde", @@ -10514,7 +10514,7 @@ dependencies = [ [[package]] name = "windmill-common" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "async-stream", @@ -10559,7 +10559,7 @@ dependencies = [ [[package]] name = "windmill-git-sync" -version = "1.406.0" +version = "1.407.0" dependencies = [ "regex", "rsmq_async", @@ -10574,7 +10574,7 @@ dependencies = [ [[package]] name = "windmill-indexer" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "bytes", @@ -10595,7 +10595,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.406.0" +version = "1.407.0" dependencies = [ "convert_case 0.6.0", "serde", @@ -10604,7 +10604,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "lazy_static", @@ -10616,7 +10616,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "gosyn", @@ -10628,7 +10628,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "lazy_static", @@ -10640,7 +10640,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "itertools 0.13.0", @@ -10651,7 +10651,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "itertools 0.13.0", @@ -10662,7 +10662,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "async-recursion", @@ -10680,7 +10680,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "convert_case 0.6.0", @@ -10697,7 +10697,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "lazy_static", @@ -10709,7 +10709,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "lazy_static", @@ -10727,7 +10727,7 @@ dependencies = [ [[package]] name = "windmill-parser-wasm" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "getrandom 0.2.15", @@ -10748,7 +10748,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "serde_json", @@ -10758,7 +10758,7 @@ dependencies = [ [[package]] name = "windmill-queue" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "async-recursion", @@ -10791,7 +10791,7 @@ dependencies = [ [[package]] name = "windmill-sql-datatype-parser-wasm" -version = "1.406.0" +version = "1.407.0" dependencies = [ "wasm-bindgen", "wasm-bindgen-test", @@ -10801,7 +10801,7 @@ dependencies = [ [[package]] name = "windmill-worker" -version = "1.406.0" +version = "1.407.0" dependencies = [ "anyhow", "async-recursion", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 187c2c1fa6..d4bfaea747 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windmill" -version = "1.406.0" +version = "1.407.0" authors.workspace = true edition.workspace = true @@ -27,7 +27,7 @@ members = [ ] [workspace.package] -version = "1.406.0" +version = "1.407.0" authors = ["Ruben Fiszel "] edition = "2021" diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index a187e43cb7..167951eaba 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -1,7 +1,7 @@ openapi: "3.0.3" info: - version: 1.406.0 + version: 1.407.0 title: Windmill API contact: diff --git a/benchmarks/lib.ts b/benchmarks/lib.ts index 8e6749ad93..b806845bde 100644 --- a/benchmarks/lib.ts +++ b/benchmarks/lib.ts @@ -2,7 +2,7 @@ import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts"; import * as windmill from "https://deno.land/x/windmill@v1.174.0/mod.ts"; import * as api from "https://deno.land/x/windmill@v1.174.0/windmill-api/index.ts"; -export const VERSION = "v1.406.0"; +export const VERSION = "v1.407.0"; export async function login(email: string, password: string): Promise { return await windmill.UserService.login({ diff --git a/cli/main.ts b/cli/main.ts index 9d667f8528..e21018d674 100644 --- a/cli/main.ts +++ b/cli/main.ts @@ -60,7 +60,7 @@ export { // } // }); -export const VERSION = "1.406.0"; +export const VERSION = "1.407.0"; const command = new Command() .name("wmill") diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 2c6b753bed..73d900b371 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "windmill-components", - "version": "1.406.0", + "version": "1.407.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "windmill-components", - "version": "1.406.0", + "version": "1.407.0", "license": "AGPL-3.0", "dependencies": { "@aws-crypto/sha256-js": "^4.0.0", diff --git a/frontend/package.json b/frontend/package.json index e05dcaa70f..872f72fe58 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "windmill-components", - "version": "1.406.0", + "version": "1.407.0", "scripts": { "dev": "vite dev", "build": "vite build", diff --git a/lsp/Pipfile b/lsp/Pipfile index e42827fa54..9dce07b55b 100644 --- a/lsp/Pipfile +++ b/lsp/Pipfile @@ -4,8 +4,8 @@ verify_ssl = true name = "pypi" [packages] -wmill = ">=1.406.0" -wmill_pg = ">=1.406.0" +wmill = ">=1.407.0" +wmill_pg = ">=1.407.0" sendgrid = "*" mysql-connector-python = "*" pymongo = "*" diff --git a/openflow.openapi.yaml b/openflow.openapi.yaml index 0a7297f02f..199e224525 100644 --- a/openflow.openapi.yaml +++ b/openflow.openapi.yaml @@ -1,7 +1,7 @@ openapi: "3.0.3" info: - version: 1.406.0 + version: 1.407.0 title: OpenFlow Spec contact: name: Ruben Fiszel diff --git a/powershell-client/WindmillClient/WindmillClient.psd1 b/powershell-client/WindmillClient/WindmillClient.psd1 index c256ed3e00..a7821247db 100644 --- a/powershell-client/WindmillClient/WindmillClient.psd1 +++ b/powershell-client/WindmillClient/WindmillClient.psd1 @@ -12,7 +12,7 @@ RootModule = 'WindmillClient.psm1' # Version number of this module. -ModuleVersion = '1.406.0' +ModuleVersion = '1.407.0' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml index 783d31c0fa..a666940b6f 100644 --- a/python-client/wmill/pyproject.toml +++ b/python-client/wmill/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wmill" -version = "1.406.0" +version = "1.407.0" description = "A client library for accessing Windmill server wrapping the Windmill client API" license = "Apache-2.0" homepage = "https://windmill.dev" diff --git a/python-client/wmill_pg/pyproject.toml b/python-client/wmill_pg/pyproject.toml index d614e0c416..783b4dad08 100644 --- a/python-client/wmill_pg/pyproject.toml +++ b/python-client/wmill_pg/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wmill-pg" -version = "1.406.0" +version = "1.407.0" description = "An extension client for the wmill client library focused on pg" license = "Apache-2.0" homepage = "https://windmill.dev" diff --git a/typescript-client/jsr.json b/typescript-client/jsr.json index ca3a98b56b..7ce1a4f9f0 100644 --- a/typescript-client/jsr.json +++ b/typescript-client/jsr.json @@ -1,6 +1,6 @@ { "name": "@windmill/windmill", - "version": "1.406.0", + "version": "1.407.0", "exports": "./src/index.ts", "publish": { "exclude": ["!src", "./s3Types.ts", "./client.ts"] diff --git a/typescript-client/package.json b/typescript-client/package.json index e53354ebfc..d41c21bbd3 100644 --- a/typescript-client/package.json +++ b/typescript-client/package.json @@ -1,7 +1,7 @@ { "name": "windmill-client", "description": "Windmill SDK client for browsers and Node.js", - "version": "1.406.0", + "version": "1.407.0", "author": "Ruben Fiszel", "license": "Apache 2.0", "devDependencies": { diff --git a/version.txt b/version.txt index 0d002223a9..d0dfef306a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.406.0 +1.407.0 From 7ca5bf2faeff44a7543b1afa9369c140fcb71dfc Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 10 Oct 2024 04:39:57 +0200 Subject: [PATCH 3/3] fix: improve handling of empty lock files on deno 2.0 --- backend/windmill-worker/src/deno_executor.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/backend/windmill-worker/src/deno_executor.rs b/backend/windmill-worker/src/deno_executor.rs index e9ce33a8a6..491741b5f1 100644 --- a/backend/windmill-worker/src/deno_executor.rs +++ b/backend/windmill-worker/src/deno_executor.rs @@ -156,10 +156,13 @@ pub async fn generate_deno_lock( } let path_lock = format!("{job_dir}/lock.json"); - let mut file = File::open(path_lock).await?; - let mut req_content = "".to_string(); - file.read_to_string(&mut req_content).await?; - Ok(req_content) + if let Ok(mut file) = File::open(path_lock).await { + let mut req_content = "".to_string(); + file.read_to_string(&mut req_content).await?; + Ok(req_content) + } else { + Ok("".to_string()) + } } #[tracing::instrument(level = "trace", skip_all)] @@ -366,7 +369,6 @@ try {{ } else if !*DISABLE_NSJAIL { args.push("--allow-net"); args.push("--allow-sys"); - args.push("--allow-hrtime"); args.push(allow_read.as_str()); args.push("--allow-write=./"); args.push("--allow-env");