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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@sqlite.org/sqlite-wasm": "3.53.4-build2",
"@tanstack/react-virtual": "3.14.11",
"@tasknotes/calendar": "0.1.4",
"@tasknotes/model": "0.3.0-rc.19",
"@tasknotes/model": "0.3.0-rc.20",
"codemirror": "^6.0.2",
"dexie": "4.4.4",
"firebase": "12.16.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

8 changes: 4 additions & 4 deletions scripts/canonical-task-pack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { readFile } from "node:fs/promises";
import { resolve } from "node:path";

export const TASKNOTES_CONTRACT_CATALOG_URL =
"https://mdbase.dev/contracts/packs/tasknotes.task/0.3.0-rc.18.json";
"https://mdbase.dev/contracts/packs/tasknotes.task/0.3.0-rc.19.json";
export const TASKNOTES_CONTRACT_CATALOG_DIGEST =
"sha256:9a9ebc26e6f63ad2fc3d92f87d38f6c140a3af90408de47d667ae7b9ba0dc9ef";
export const TASKNOTES_APP_TYPE_PACK_VERSION = "0.3.0-rc.18";
"sha256:ca9ac8ad5c90c7d9a19be226153a32b619b9156f83f95c38ad7ad2346e094b63";
export const TASKNOTES_APP_TYPE_PACK_VERSION = "0.3.0-rc.19";

export const TASKNOTES_CONTRACT_VENDOR_PATH = resolve(
process.cwd(),
"vendor/mdbase-contracts/tasknotes.task-0.3.0-rc.18.json",
"vendor/mdbase-contracts/tasknotes.task-0.3.0-rc.19.json",
);

export async function loadCanonicalTaskNotesTypePack() {
Expand Down
4 changes: 4 additions & 0 deletions scripts/tasknotes-manifest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ export async function buildTaskNotesManifest({
installation_origins: TASKNOTES_INSTALLATION_ORIGINS,
requirements: {
people: { version: 1, optional: ["identity", "members"] },
// A provision may only provide contracts the app requires. The task
// pack also provides tasknotes.settings and mdbase.app-settings, for
// the TaskNotes settings record.
contracts: [
taskContract,
...typePack.provides.filter((contract) => contract !== taskContract),
...basePack.provides,
...mdbaseViewPack.provides,
],
Expand Down
14 changes: 8 additions & 6 deletions scripts/tasknotes-manifest.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ describe("TaskNotes mdbase manifest", () => {
expect(manifest.requirements.contracts).toEqual([
expect.objectContaining({
id: "tasknotes.task",
version: "0.3.0-rc.5",
version: "0.3.0-rc.6",
digest: expect.stringMatching(/^sha256:[0-9a-f]{64}$/),
}),
expect.objectContaining({ id: "tasknotes.settings", version: "1.0.0" }),
expect.objectContaining({ id: "mdbase.app-settings", version: "1.0.0" }),
expect.objectContaining({ id: "obsidian.base", version: "1.0.0" }),
expect.objectContaining({ id: "mdbase.view", version: "1.0.0" }),
]);
Expand Down Expand Up @@ -125,12 +127,12 @@ describe("TaskNotes mdbase manifest", () => {
},
]);
expect(manifest.provisions.type_packs[0].manifest.resources).toHaveLength(
4,
10,
);
expect(manifest.provisions.type_packs[0].manifest.version).toBe(
TASKNOTES_APP_TYPE_PACK_VERSION,
);
expect(TASKNOTES_APP_TYPE_PACK_VERSION).toBe("0.3.0-rc.18");
expect(TASKNOTES_APP_TYPE_PACK_VERSION).toBe("0.3.0-rc.19");
const taskSeed = manifest.provisions.type_packs[0].manifest.resources.find(
(resource) => resource.kind === "type",
);
Expand All @@ -140,7 +142,7 @@ describe("TaskNotes mdbase manifest", () => {
taskSeed.upgrade_from.map(
(baseline) => parse(baseline.document.split("---\n")[1]).version,
),
).toEqual([4, 3, 2, 1]);
).toEqual([4, 4, 3, 2, 1]);
for (const baseline of taskSeed.upgrade_from) {
expect(baseline.digest).toBe(
`sha256:${createHash("sha256").update(baseline.document).digest("hex")}`,
Expand Down Expand Up @@ -335,7 +337,7 @@ describe("TaskNotes mdbase manifest", () => {
const implementation = generated.type.implements.find(
(candidate) =>
candidate.contract === "tasknotes.task" &&
candidate.version === "0.3.0-rc.5",
candidate.version === "0.3.0-rc.6",
);
const field = implementation.fields.sortOrder;
expect(generated.type.schema.value.properties[field]).toEqual({
Expand All @@ -359,7 +361,7 @@ describe("TaskNotes mdbase manifest", () => {
const implementation = generated.type.implements.find(
(candidate) =>
candidate.contract === "tasknotes.task" &&
candidate.version === "0.3.0-rc.5",
candidate.version === "0.3.0-rc.6",
);
const taskDateSchema = {
anyOf: [
Expand Down
4 changes: 2 additions & 2 deletions src/cloud/next-installation-model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { modelResourceInventory } from "../storage/next-model-resources";
import bases from "../../vendor/obsidian-base-1.0.0.json";
import { taskNotesDefaultBaseSources } from "../domain/default-view-source";
import { resourceSetupPlan } from "../test/resource-setup-plan";
import publisher from "../../vendor/mdbase-contracts/tasknotes.task-0.3.0-rc.18.json";
import publisher from "../../vendor/mdbase-contracts/tasknotes.task-0.3.0-rc.19.json";
import { initializeModelPackCore } from "./next-model-pack-core";
import {
nativeModelPackAssessment,
Expand Down Expand Up @@ -474,7 +474,7 @@ describe("original Worker model journal and held repository wiring", () => {
packs: [
expect.objectContaining({
id: "tasknotes.task",
version: "0.3.0-rc.18",
version: "0.3.0-rc.19",
}),
expect.objectContaining({
id: "tasknotes.scratch",
Expand Down
Loading
Loading