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
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ It works through Obsidian's Vault, HTTP, IndexedDB, and SecretStorage APIs. The
production bundle has no Node filesystem dependency and is checked against a
mobile bundle budget.

Canonical view files remain ordinary v0.3 records in this adapter. When a
collection materializes `_types/view.md` (normally referring to
`schemas/v0.3/view.schema.json`), the plugin validates their nested shared
`query` and named-view frontmatter like any other typed record. This plugin does
not execute named views or advertise the optional `view_records` feature; it
leaves execution and presentation to query-capable companion tools.

## Collection roles

### Local collection
Expand Down Expand Up @@ -111,10 +118,9 @@ npm run build:test
enforces checked-in schema, migration-analysis, validation, and issue-render
budgets.

The Connect SDK packages are vendored as exact consumer tarballs. Their source
revision and integrity hashes are recorded in
`vendor/mdbase-connect-sdk.json`; regenerate them with the Connect repository's
`package:consumer` script rather than editing the archives.
The Connect SDK and mdbase interop packages are installed from npm at exact
prerelease versions. Update `package.json` and regenerate `package-lock.json`
when advancing them.

## Compatibility

Expand Down
256 changes: 128 additions & 128 deletions main.js

Large diffs are not rendered by default.

74 changes: 37 additions & 37 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"typescript": "^5.7.2"
},
"dependencies": {
"@callumalpass/mdbase-interop": "file:vendor/callumalpass-mdbase-interop-0.1.0-rc.2.tgz",
"@mdbase/connect-protocol": "file:vendor/mdbase-connect-protocol-0.1.0-beta.21-35c137579861.tgz",
"@mdbase/connect-sync": "file:vendor/mdbase-connect-sync-0.1.0-beta.21-35c137579861.tgz",
"@callumalpass/mdbase-interop": "0.1.0-rc.2",
"@mdbase-dev/connect-protocol": "0.1.0-beta.23",
"@mdbase-dev/connect-sync": "0.1.0-beta.23",
"ajv": "^8.20.0",
"ajv-formats": "^3.0.1",
"picomatch": "^4.0.5"
Expand Down
3 changes: 1 addition & 2 deletions scripts/check-mobile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readFile } from "node:fs/promises";
const bundle = await readFile(new URL("../main.js", import.meta.url));
const source = bundle.toString("utf8");
const gzipBytes = gzipSync(bundle).byteLength;
const rawBudget = 550 * 1024;
const rawBudget = 575 * 1024;
const gzipBudget = 170 * 1024;
const forbidden = [
/require\((["'])node:(?:fs|path|crypto|os|worker_threads|child_process)\1\)/,
Expand All @@ -30,4 +30,3 @@ console.log(JSON.stringify({
raw_budget: rawBudget,
gzip_budget: gzipBudget,
}));

Loading
Loading