Skip to content

Commit

Permalink
Prepare for the 1.0.0-rc.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Feb 18, 2025
1 parent 7ba2c7b commit 91b29d6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 1.0.0-rc.1 Deno Client; 0.2.0 binary -- 2025-02-17

- Added new logging that can be triggered with the `LOG_LEVEL` environment variable

- [BREAKING] Changed some typenames/zod schemas not to include `Webview` in the name.
- [BREAKING] Updated code generation to support multiple clients which necessitated a breaking change for the Deno client.

```diff
using webview = await createWebView({
title: "Simple",
devtools: true,
+ load: {
html: "<h1>Hello, World!</h1>",
+ },
initializationScript:
"console.log('This is printed from initializationScript!')",
});
```
`html` or `url` must be wrapped in an object and passed to `load`.

## 0.0.17 (binary 0.1.14) -- 2024-10-02

- Add `webview.loadUrl` to load a new URL after the webview is initialized
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ When executing this package, it checks to see if you have the required binary fo
This will be true of a first run of the package. These are the following permission requests you can expect to see:

- Read HOME env -- Used to locate the cache directory
- Read <cache>/deno-webview/deno-webview-<version> -- Tries to read the binary from cache
- Read <cache>/webview/webview-<version> -- Tries to read the binary from cache
- net to github.com:443 -- Connects to GitHub releases to try to download the binary (will be redirected)
- net to objects.githubusercontent.com:443 -- GitHub's CDN for the actual download
- Read <cache>/deno-webview/ -- Reads the cache directory
- Write <cache>/deno-webview/deno-webview-<version> -- Writes the binary
- Run <cache>/deno-webview/deno-webview-<version> -- Runs the binary
- Read <cache>/webview/ -- Reads the cache directory
- Write <cache>/webview/webview-<version> -- Writes the binary
- Run <cache>/webview/webview-<version> -- Runs the binary

### Binary cached

Expand Down
2 changes: 1 addition & 1 deletion src/clients/deno/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@justbe/webview",
"exports": "./main.ts",
"license": "MIT",
"version": "0.0.17",
"version": "1.0.0-rc.1",
"publish": {
"include": ["README.md", "LICENSE", "*.ts", "schemas/*.ts"]
},
Expand Down
4 changes: 2 additions & 2 deletions src/clients/deno/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ import { ensureDir, exists } from "jsr:@std/fs";
import { error, FmtSubscriber, instrument, Level, trace, warn } from "tracing";
import { match, P } from "ts-pattern";

export * from "./schemas.ts";

if (
Deno.permissions.querySync({ name: "env", variable: "LOG_LEVEL" }).state ===
"granted"
Expand All @@ -51,8 +53,6 @@ if (
FmtSubscriber.setGlobalDefault({ level, color: true });
}

export * from "./schemas.ts";

// Should match the cargo package version
/** The version of the webview binary that's expected */
export const BIN_VERSION = "0.2.0";
Expand Down

0 comments on commit 91b29d6

Please sign in to comment.