Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion apps/reference/deno.lock

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

2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nzip/lofi",
"version": "0.8.1",
"version": "0.9.0",
"license": "MIT",
"description": "A local-first Deno PWA framework with durable local data, recoverable accounts, optional Jazz sync, mutations with sync-boundary effects, and private, direct-share, or group access templates.",
"exports": {
Expand Down
8 changes: 4 additions & 4 deletions package/create_core_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ Deno.test("createProject materializes the complete starter snapshot", async () =
);
}
const config = JSON.parse(await Deno.readTextFile(join(result.destination, "deno.json")));
assertEquals(config.imports["@nzip/lofi"], "jsr:@nzip/lofi@0.8.1");
assertEquals(config.imports["@nzip/lofi/"], "jsr:@nzip/lofi@0.8.1/");
assertEquals(config.imports["@nzip/lofi/testing"], "jsr:@nzip/lofi@0.8.1/testing");
assertEquals(config.imports["@nzip/lofi"], "jsr:@nzip/lofi@0.9.0");
assertEquals(config.imports["@nzip/lofi/"], "jsr:@nzip/lofi@0.9.0/");
assertEquals(config.imports["@nzip/lofi/testing"], "jsr:@nzip/lofi@0.9.0/testing");
const lofiSpecifiers = Object.entries(config.imports)
.filter(([name]) => name.startsWith("@nzip/lofi/"))
.map(([, specifier]) => String(specifier));
Expand All @@ -158,7 +158,7 @@ Deno.test("createProject materializes the complete starter snapshot", async () =
`expected one package prefix, access, schema, two integrations, six commands, seven recipes, and testing, received ${lofiSpecifiers.length}`,
);
assert(
lofiSpecifiers.every((specifier) => specifier.startsWith("jsr:@nzip/lofi@0.8.1/")),
lofiSpecifiers.every((specifier) => specifier.startsWith("jsr:@nzip/lofi@0.9.0/")),
"generated lofi commands do not resolve through one exact package version",
);
const appSource = await Deno.readTextFile(join(result.destination, "src", "app.ts"));
Expand Down
12 changes: 10 additions & 2 deletions package/schema/encrypted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,20 @@ export interface EncryptedColumn<TView> extends
TypedColumnBuilder<EncryptedStoredSql, false, undefined, false, TView>,
"default" | "merge" | "transform" | "optional"
> {
/** Carries the decrypted view type without affecting the runtime shape. */
readonly [encryptedColumnBrand]?: TView;
/** Encrypted columns cannot define plaintext defaults. */
default(value: never): never;
/** Encrypted columns cannot merge ciphertext values. */
merge(strategy: never): never;
/** Encrypted columns cannot replace their sealing transform. */
transform(transform: never): never;
// The `this: never` parameter keeps the method arity-compatible with the
// base builder while making every call site a compile error.
/**
* Encrypted columns cannot be optional.
*
* The `this: never` parameter keeps the method arity-compatible with the
* base builder while making every call site a compile error.
*/
optional(this: never): never;
}

Expand Down
2 changes: 1 addition & 1 deletion package/testdata/starter.snapshot.json

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

2 changes: 1 addition & 1 deletion package/version.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** The single source version for generated @nzip/lofi references. */
export const LOFI_VERSION = "0.8.1";
export const LOFI_VERSION = "0.9.0";

/** The exact JSR package prefix emitted into generated projects. */
export const LOFI_PACKAGE_PREFIX = `jsr:@nzip/lofi@${LOFI_VERSION}/`;
Loading