Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: prepare 0.4.6 #795

Merged
merged 22 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
546 changes: 318 additions & 228 deletions .ghjk/lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude = [
"libs/pyrt_wit_wire",
]
[workspace.package]
version = "0.4.5"
version = "0.4.6-0"
edition = "2021"

[workspace.dependencies]
Expand Down
12 changes: 4 additions & 8 deletions dev/consts.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright Metatype OÜ, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

export const METATYPE_VERSION = "0.4.5";
export const PUBLISHED_VERSION = "0.4.4";
export const METATYPE_VERSION = "0.4.6-0";
export const PUBLISHED_VERSION = "0.4.5";
export const GHJK_VERSION = "8d50518";
export const GHJK_ACTION_VERSION = "318209a9d215f70716a4ac89dbeb9653a2deb8bc";
export const RUST_VERSION = "1.77.1";
Expand All @@ -12,6 +12,7 @@ export const WASMTIME_PY_VERSION = "21.0.0";
export const TYPEGRAPH_VERSION = "0.0.3";
export const PRISMA_VERSION = "5.6.0";
export const SDK_PACKAGE_NAME_TS = "@typegraph/sdk";
export const PYTHON_VERSION = "3.8.18";
export const TAGLINE =
`Declarative API development platform. Build backend components with WASM, Typescript and Python, no matter where and how your (legacy) systems are.`;

Expand All @@ -33,9 +34,6 @@ export const sedLockLines: Record<string, [string | RegExp, string][]> = {
"typegate/tests/**/*.snap": [
[/(\s*static\s*MT_VERSION:\s*&str\s*=\s*").+(";)/, METATYPE_VERSION],
],
"typegate/tests/e2e/upgrade/upgrade_test.ts": [
[/(const\s+PUBLISHED_VERSION\s*=\s*").+(";)/, PUBLISHED_VERSION],
],
"typegraph/python/typegraph/__init__.py": [
['(version = ").+(")', METATYPE_VERSION],
],
Expand All @@ -57,9 +55,7 @@ export const sedLockLines: Record<string, [string | RegExp, string][]> = {
['(wasmtime = ").+(")', WASMTIME_VERSION],
['(wasmtime-wasi = ").+(")', WASMTIME_VERSION],
],
"dev/deps.ts": [
[/(.*\/metatypedev\/ghjk\/)[^\/]*(\/.*)/, GHJK_VERSION],
],
"dev/deps.ts": [[/(.*\/metatypedev\/ghjk\/)[^\/]*(\/.*)/, GHJK_VERSION]],
"dev/cross.Dockerfile": [["(ARG GHJK_VERSION=).*()", GHJK_VERSION]],
"dev/Dockerfile": [
["(ARG DENO_VERSION=).*()", DENO_VERSION],
Expand Down
11 changes: 6 additions & 5 deletions dev/deps.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
// Copyright Metatype OÜ, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

export { file } from "https://raw.github.com/metatypedev/ghjk/8d50518/mod.ts";
export * from "https://raw.github.com/metatypedev/ghjk/8d50518/mod.ts";
export * as ports from "https://raw.github.com/metatypedev/ghjk/8d50518/ports/mod.ts";
export { file } from "https://raw.githubusercontent.com/metatypedev/ghjk/8d50518/mod.ts";
export * from "https://raw.githubusercontent.com/metatypedev/ghjk/8d50518/mod.ts";
export * as ports from "https://raw.githubusercontent.com/metatypedev/ghjk/8d50518/ports/mod.ts";
export {
std_url,
zod,
} from "https://raw.github.com/metatypedev/ghjk/8d50518/deps/common.ts";
} from "https://raw.githubusercontent.com/metatypedev/ghjk/8d50518/deps/common.ts";
export {
copyLock,
sedLock,
} from "https://raw.github.com/metatypedev/ghjk/8d50518/std.ts";
} from "https://raw.githubusercontent.com/metatypedev/ghjk/8d50518/std.ts";
export { downloadFile } from "https://raw.githubusercontent.com/metatypedev/ghjk/8d50518/utils/mod.ts";
// export * from "../../ghjk/mod.ts";
// export * as ports from "../../ghjk/ports/mod.ts";
// export * as utils from "../../ghjk/utils/mod.ts";
Expand Down
5 changes: 3 additions & 2 deletions dev/installs.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// Copyright Metatype OÜ, licensed under the Elastic License 2.0.
// SPDX-License-Identifier: Elastic-2.0

import { DENO_VERSION } from "./consts.ts";
import { DENO_VERSION, PYTHON_VERSION, RUST_VERSION } from "./consts.ts";
import { ports } from "./deps.ts";

export default {
python: ports.cpy_bs({ version: "3.8.18", releaseTag: "20240224" }),
python: ports.cpy_bs({ version: PYTHON_VERSION, releaseTag: "20240224" }),
// for use by pipi based ports
python_latest: ports.cpy_bs({ version: "3.12.2", releaseTag: "20240224" }),
node: ports.node({ version: "20.8.0" }),
rust_stable: ports.rust({ version: RUST_VERSION }),
rust_nightly: ports.rust({ version: "nightly-2024-05-26" }),
deno: ports.deno_ghrel({ version: DENO_VERSION }),
};
6 changes: 3 additions & 3 deletions examples/templates/deno/api/example.ts
Yohe-Am marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Policy, t, typegraph } from "npm:@typegraph/[email protected].4/index";
import { PythonRuntime } from "npm:@typegraph/[email protected].4/runtimes/python";
import { DenoRuntime } from "npm:@typegraph/[email protected].4/runtimes/deno";
import { Policy, t, typegraph } from "npm:@typegraph/[email protected].5/index";
import { PythonRuntime } from "npm:@typegraph/[email protected].5/runtimes/python";
import { DenoRuntime } from "npm:@typegraph/[email protected].5/runtimes/deno";

await typegraph("example", (g) => {
const pub = Policy.public();
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/deno/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
typegate:
image: ghcr.io/metatypedev/typegate:v0.4.4
image: ghcr.io/metatypedev/typegate:v0.4.5
restart: always
ports:
- "7890:7890"
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/node/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
typegate:
image: ghcr.io/metatypedev/typegate:v0.4.4
image: ghcr.io/metatypedev/typegate:v0.4.5
restart: always
ports:
- "7890:7890"
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "MCLI_LOADER_CMD='npm x tsx' meta dev"
},
"dependencies": {
"@typegraph/sdk": "^0.4.4"
"@typegraph/sdk": "^0.4.5"
},
"devDependencies": {
"tsx": "^3.13.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/python/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
typegate:
image: ghcr.io/metatypedev/typegate:v0.4.4
image: ghcr.io/metatypedev/typegate:v0.4.5
restart: always
ports:
- "7890:7890"
Expand Down
4 changes: 2 additions & 2 deletions examples/templates/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tool.poetry]
name = "example"
version = "0.4.5"
version = "0.4.6-0"
description = ""
authors = []

[tool.poetry.dependencies]
python = ">=3.8,<4.0"
typegraph = "0.4.4"
typegraph = "0.4.5"

[build-system]
requires = ["poetry-core"]
Expand Down
8 changes: 7 additions & 1 deletion ghjk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ env("main")
TYPEGRAPH_VERSION: "0.0.3",
CLICOLOR_FORCE: "1",
})
.allowedBuildDeps(...stdDeps(), installs.python_latest, installs.node);
.allowedBuildDeps(
...stdDeps(),
installs.python_latest,
installs.node,
installs.rust_stable,
);

env("_rust").install(
// use rustup for the actual toolchain
Expand Down Expand Up @@ -112,6 +117,7 @@ env("dev")
ports.act(),
ports.cargobi({ crateName: "whiz", locked: true }),
ports.cargobi({ crateName: "wit-deps-cli", locked: true }),
ports.cargobi({ crateName: "git-cliff", locked: true }),
);

task("version-print", () => console.log(METATYPE_VERSION), {
Expand Down
2 changes: 1 addition & 1 deletion libs/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "common"
version = "0.4.5"
version = "0.4.6-0"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion libs/metagen/tests/mat_rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "mat_rust"
edition = "2021"
version = "0.4.5"
version = "0.4.6-0"

[workspace]
members = ["gen"]
Expand Down
2 changes: 1 addition & 1 deletion libs/pyrt_wit_wire/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyrt_wit_wire"
version = "0.4.5"
version = "0.4.6-0"
description = "Wasm component implementing the PythonRuntime host using wit_wire protocol."
license = "Elastic-2.0"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion libs/xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xtask"
version = "0.4.5"
version = "0.4.6-0"
edition = "2021"

[dependencies]
Expand Down
2 changes: 2 additions & 0 deletions libs/xtask/src/deno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl Test {
"temporal",
"deno",
"poetry",
"xtask",
]
.into_iter()
.map(str::to_owned)
Expand Down Expand Up @@ -144,6 +145,7 @@ impl Bench {
"temporal",
"deno",
"poetry",
"xtask",
]
.into_iter()
.map(str::to_owned)
Expand Down
2 changes: 1 addition & 1 deletion meta-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "meta-cli"
version = "0.4.5"
version = "0.4.6-0"
edition = "2021"

description = "Declarative API development platform. Build backend components with WASM, Typescript and Python, no matter where and how your (legacy) systems are."
Expand Down
2 changes: 1 addition & 1 deletion meta-lsp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "VSCode extension for Metatype support",
"icon": "logo.png",
"author": "Metatype Team",
"version": "0.4.5",
"version": "0.4.6-0",
"repository": {
"type": "git",
"url": "https://github.com/metatypedev/metatype"
Expand Down
2 changes: 1 addition & 1 deletion meta-lsp/ts-language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "typegraph-ts-server",
"description": "TypeScript language server for TypeGraph",
"author": "Metatype Team",
"version": "0.4.5",
"version": "0.4.6-0",
"repository": {
"type": "git",
"url": "https://github.com/metatypedev/metatype"
Expand Down
2 changes: 1 addition & 1 deletion meta-lsp/vscode-metatype-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-metatype-support",
"description": "VSCode extension for Metatype support",
"author": "Metatype Team",
"version": "0.4.5",
"version": "0.4.6-0",
"repository": {
"type": "git",
"url": "https://github.com/metatypedev/metatype"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metatype"
version = "0.4.5"
version = "0.4.6-0"
description = ""
authors = []

Expand Down
Loading
Loading