Skip to content

Commit 5a8032c

Browse files
committed
Prepare new release v0.13.0.
1 parent 4bf9821 commit 5a8032c

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## v0.13.0
2+
3+
* Improve authentication and avatar handling (breaking).
4+
* Remove avatar handling dependence on *special* `_user_avatar` record API by introducing dedicaed APIs.
5+
This is a breaking change to the semantics of `/api/auth/v1/avatar*`, which
6+
affects users of said APIs or `client.avatarUrl()`. Make sure to update to
7+
the latest JS/TS client (v0.6).
8+
* We also recommend removing the `_user_avatar` API definition from your `<traildepot>/config.textproto`.
9+
It's inconsequential to have but no longer needed.
10+
* Further, `/api/auth/v1/status` will now also refresh tokens thus not only
11+
validating the auth token but also the session. The JS/TS client uses this to
12+
asynchronously validate provided tokens.
13+
* Allow deletion of avatars on `/_/auth/profile`. Also adopt nanostores to
14+
manage client/user state on the profiles page.
15+
* Add avatars back to admin UI.
16+
* Document auth token lifecycle expectations when persisting tokens.
17+
* Update dependencies.
18+
119
## v0.12.3
220

321
* Fix row insertion/update in admin dashboard.

examples/blog/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"nanostores": "^1.0.1",
2222
"solid-icons": "^1.1.0",
2323
"solid-js": "^1.9.7",
24-
"trailbase": "^0.5.1"
24+
"trailbase": "workspace:*"
2525
},
2626
"devDependencies": {
2727
"@astrojs/solid-js": "^5.1.0",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

trailbase-assets/js/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "trailbase",
33
"description": "Official TrailBase Client",
4-
"version": "0.5.1",
4+
"version": "0.6.0",
55
"license": "OSL-3.0",
66
"type": "module",
77
"main": "./src/index.ts",

trailbase-build/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn pnpm_run(args: &[&str]) -> Result<std::process::Output> {
8484

8585
pub fn build_js(path: impl AsRef<Path>) -> Result<()> {
8686
let path = path.as_ref().to_string_lossy().to_string();
87-
let offline: bool = matches!(
87+
let strict_offline: bool = matches!(
8888
std::env::var("PNPM_OFFLINE").as_deref(),
8989
Ok("TRUE") | Ok("true") | Ok("1")
9090
);
@@ -100,16 +100,16 @@ pub fn build_js(path: impl AsRef<Path>) -> Result<()> {
100100
// parallel installs in the past. Our current approach is to recommend installing workspace
101101
// JS deps upfront in combination with `--prefer-offline`. We used to use plain `--offline`,
102102
// however this adds an extra mandatory step when vendoring trailbase for framework use-cases.
103-
let args = if offline {
103+
let args = if strict_offline {
104+
["--dir", &path, "install", "--frozen-lockfile", "--offline"]
105+
} else {
104106
[
105107
"--dir",
106108
&path,
107109
"install",
108110
"--prefer-frozen-lockfile",
109111
"--prefer-offline",
110112
]
111-
} else {
112-
["--dir", &path, "install", "--frozen-lockfile", "--offline"]
113113
};
114114
let build_result = pnpm_run(&args);
115115
if build_result.is_err() {

0 commit comments

Comments
 (0)