chore: bump version (#15873)

This commit is contained in:
DarkSky authored and GitHub committed 2026-11-20 17:52:12 +08:00
1 parent dc2b221244
commit 15bcb880c9
12 files changed
+136 -128

No files matched your search

Generated
+30 -19
View File
@@ -93,9 +93,9 @@ dependencies = [
[[package]]
name = "affine_doc_loader"
version = "0.2.1"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da9b86987246581f2219a7e9838426669cf26187406977d3ae065f041e115dbb"
checksum = "b76c6e41afed3a846efaa361409da555d08b4caf1338205746dadde2604bee2b"
dependencies = [
"affine_merge",
"chrono",
@@ -110,9 +110,9 @@ dependencies = [
[[package]]
name = "affine_importer"
version = "0.2.0"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "907e52a22fb81129174c9033036c4dd8050017d798b1b18e0016b69742588c8f"
checksum = "90082593d61bd6fd8b550ca1e2de65654ac2b15da7d4396c6c1471e86d191d9d"
dependencies = [
"affine_doc_loader",
"bytes",
@@ -161,9 +161,9 @@ dependencies = [
[[package]]
name = "affine_merge"
version = "0.1.0"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97115a1f834d5aa6f1fa7ea1e5e4e17f9bbdc1078b529c0a909db8f392edbedb"
checksum = "512fbcc04148bdb3d5193159d73a6f9b5e685b4a5a9fbc421d87abfa79d89b29"
dependencies = [
"serde",
"thiserror 2.0.18",
@@ -356,6 +356,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
dependencies = [
"cfg-if",
"const-random",
"getrandom 0.3.4",
"once_cell",
"serde",
@@ -1530,6 +1531,26 @@ version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
[[package]]
name = "const-random"
version = "0.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359"
dependencies = [
"const-random-macro",
]
[[package]]
name = "const-random-macro"
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e"
dependencies = [
"getrandom 0.2.17",
"once_cell",
"tiny-keccak",
]
[[package]]
name = "constant_time_eq"
version = "0.6.1"
@@ -7065,16 +7086,6 @@ version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
[[package]]
name = "rand_distr"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d431c2703ccf129de4d45253c03f49ebb22b97d6ad79ee3ecfc7e3f4862c1d8"
dependencies = [
"num-traits",
"rand 0.10.1",
]
[[package]]
name = "rand_pcg"
version = "0.10.2"
@@ -11362,21 +11373,21 @@ checksum = "aee1b19627c7c60102ab80d3a9cbe18de90bfe03bfa6c3715447681f0e8c8af6"
[[package]]
name = "y-octo"
version = "0.1.4"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "befa3530e907f8e7cf681391b09f7f6110a8a6474cb1fa11157ae0e904ac7e28"
checksum = "ce9830799db2d14bbd6b36f9e9bc6047ba01cdb6f5f30731113314dc39b7cc67"
dependencies = [
"ahash",
"arbitrary",
"async-lock",
"byteorder",
"indexmap",
"log",
"loom",
"nanoid",
"nom 8.0.0",
"ordered-float",
"rand 0.10.1",
"rand_distr",
"serde",
"serde_json",
"smol_str",
+3 -3
View File
@@ -16,8 +16,8 @@ resolver = "3"
[workspace.dependencies]
aes-gcm = "0.10"
affine_common = { path = "./packages/common/native" }
affine_doc_loader = "0.2.1"
affine_importer = "0.2.0"
affine_doc_loader = "0.3.0"
affine_importer = "0.3.0"
affine_nbstore = { path = "./packages/frontend/native/nbstore" }
affine_preview = { version = "0.1.0", default-features = false }
anyhow = "1"
@@ -111,7 +111,7 @@ resolver = "3"
"Win32_UI_Shell_PropertiesSystem",
] }
windows-core = { version = "0.62" }
y-octo = { version = "0.1.4", features = ["large_refs"] }
y-octo = { version = "0.2.0", features = ["large_refs"] }
zeroize = "1.9"
zip = "9.0.5"
@@ -14,8 +14,7 @@ impl PaymentRuntime {
FROM provider_subscriptions
WHERE provider_namespace=$1 AND target_type='user' AND target_id=$2
AND recurring<>'lifetime' AND external_subscription_id IS NOT NULL
AND status IN ('active','trialing','past_due')
AND (period_end IS NULL OR period_end>clock_timestamp())
AND status NOT IN ('canceled','incomplete_expired')
ORDER BY source_identity"#,
)
.bind(&namespace_key)
@@ -962,7 +962,7 @@ async fn operation_intent_is_frozen_before_send_and_blocks_overlapping_work() {
external_customer_id,external_subscription_id,period_end,metadata)
VALUES
($1,'stripe',$2,$3,'user',$4,'pro','monthly','active',$5,$3,clock_timestamp()+INTERVAL '30 days','{}'),
($6,'stripe',$2,$7,'user',$4,'ai','yearly','active',$5,$7,clock_timestamp()+INTERVAL '30 days','{}')"#,
($6,'stripe',$2,$7,'user',$4,'ai','yearly','past_due',$5,$7,clock_timestamp()-INTERVAL '1 day','{}')"#,
)
.bind(uuid::Uuid::new_v4().to_string())
.bind(&account_namespace_key)
@@ -56,6 +56,7 @@ Generated by [AVA](https://avajs.dev).
* Airtable & Miro with their no-code programable datasheets␊
* Miro & Whimiscal with their edgeless visual whiteboard␊
* Remnote & Capacities with their object-based tag system␊
␊
For more details, please refer to our [RoadMap](https://docs.affine.pro/docs/core-concepts/roadmap)␊
␊
## Self Host␊
@@ -64,6 +64,7 @@ Generated by [AVA](https://avajs.dev).
* Airtable & Miro with their no-code programable datasheets␊
* Miro & Whimiscal with their edgeless visual whiteboard␊
* Remnote & Capacities with their object-based tag system␊
␊
For more details, please refer to our [RoadMap](https://docs.affine.pro/docs/core-concepts/roadmap)␊
␊
## Self Host␊
@@ -1593,6 +1594,7 @@ Generated by [AVA](https://avajs.dev).
* Miro & Whimiscal with their edgeless visual whiteboard␊
<!-- block_id=FFVmit6u1T flavour=affine:list -->␊
* Remnote & Capacities with their object-based tag system␊
␊
<!-- block_id=YqnG5O6AE6 flavour=affine:paragraph -->␊
For more details, please refer to our [RoadMap](https://docs.affine.pro/docs/core-concepts/roadmap)␊
␊
@@ -1616,6 +1618,7 @@ Generated by [AVA](https://avajs.dev).
|Remnote & Capacities with their object-based tag system|Remnote & Capacities with their object-based tag system||␊
␊
<!-- block_id=U_GoHFD9At flavour=affine:database end -->␊
␊
<!-- block_id=NyHXrMX3R1 flavour=affine:paragraph -->␊
## Affine Development␊
␊
@@ -171,12 +171,17 @@ test('can parse doc to markdown from doc snapshot with ai editable', async t =>
t.regex(
result.markdown,
/<!-- block_id=([^ ]+) flavour=affine:database -->[\s\S]*?<!-- block_id=\1 flavour=affine:database end -->\n<!-- block_id=[^ ]+ flavour=affine:paragraph -->/
/<!-- block_id=([^ ]+) flavour=affine:database -->[\s\S]*?<!-- block_id=\1 flavour=affine:database end -->\n\n<!-- block_id=[^ ]+ flavour=affine:paragraph -->/
);
t.deepEqual(
{
...result,
markdown: result.markdown.replace(/^<!-- block_id=.* -->\n/gm, ''),
markdown: result.markdown
.replace(
/^<!-- block_id=[^ ]+ flavour=affine:database end -->\n\n/gm,
''
)
.replace(/^<!-- block_id=.* -->\n/gm, ''),
},
parseDocToMarkdownFromDocSnapshot(
workspace.id,
@@ -23,33 +23,23 @@ pub(crate) fn build_root_meta_update(
.map_err(|err| format!("failed to open root meta map: {}", err))?;
let mut pages = ensure_pages_array(&doc, &mut meta_map)?;
let mut found = false;
for idx in 0..pages.len() {
let Some(mut page) = pages.get(idx).and_then(|value| value.to_map()) else {
continue;
};
if get_string_from_map(&page, "id").as_deref() == Some(doc_id) {
apply_page_meta(&doc, &mut page, doc_id, meta)?;
found = true;
break;
let mut page = match pages
.iter()
.filter_map(|value| value.to_map())
.find(|page| get_string_from_map(page, "id").as_deref() == Some(doc_id))
{
Some(page) => page,
None => {
let page = doc
.create_map()
.map_err(|err| format!("failed to create root page map: {err}"))?;
pages
.push(Value::Map(page.clone()))
.map_err(|err| format!("failed to insert root page map: {err}"))?;
page
}
}
if !found {
let page_map = doc
.create_map()
.map_err(|err| format!("failed to create root page map: {}", err))?;
let idx = pages.len();
pages
.insert(idx, Value::Map(page_map))
.map_err(|err| format!("failed to insert root page map: {}", err))?;
if let Some(mut page) = pages.get(idx).and_then(|value| value.to_map()) {
apply_page_meta(&doc, &mut page, doc_id, meta)?;
}
}
};
apply_page_meta(&doc, &mut page, doc_id, meta)?;
doc
.encode_state_as_update_v1(&state_before)
+11 -29
View File
@@ -187,7 +187,7 @@ pub(crate) fn is_empty_update(value: &[u8]) -> bool {
}
pub(crate) fn merge_update_binary(existing: Option<&[u8]>, update: &[u8]) -> Result<Vec<u8>, String> {
let mut doc = build_doc(None);
let mut doc = Doc::new();
if let Some(existing) = existing.filter(|value| !is_empty_update(value)) {
doc
.apply_update_from_binary_v1(existing)
@@ -199,7 +199,7 @@ pub(crate) fn merge_update_binary(existing: Option<&[u8]>, update: &[u8]) -> Res
.map_err(|err| format!("failed to merge update: {err}"))?;
}
doc
.encode_state_as_update_v1(&y_octo::StateVector::default())
.encode_update_v1()
.map_err(|err| format!("failed to encode merged update: {err}"))
}
@@ -216,10 +216,7 @@ pub(crate) fn merge_frontend_update_binary(existing: Option<&[u8]>, update: &[u8
}
if updates.len() == 1 {
let update = updates[0];
let mut doc = build_doc(None);
doc
.apply_update_from_binary_v1(update)
.map_err(|err| format!("failed to apply frontend update: {err}"))?;
Doc::try_from_binary_v1(update).map_err(|err| format!("failed to apply frontend update: {err}"))?;
return Ok(update.to_vec());
}
merge_updates_v1(updates)
@@ -228,14 +225,8 @@ pub(crate) fn merge_frontend_update_binary(existing: Option<&[u8]>, update: &[u8
}
pub(crate) fn same_update_state(left: &[u8], right: &[u8]) -> Result<bool, String> {
let mut left_doc = build_doc(None);
left_doc
.apply_update_from_binary_v1(left)
.map_err(|err| format!("failed to decode checkpoint update: {err}"))?;
let mut right_doc = build_doc(None);
right_doc
.apply_update_from_binary_v1(right)
.map_err(|err| format!("failed to decode local update: {err}"))?;
let left_doc = Doc::try_from_binary_v1(left).map_err(|err| format!("failed to decode checkpoint update: {err}"))?;
let right_doc = Doc::try_from_binary_v1(right).map_err(|err| format!("failed to decode local update: {err}"))?;
Ok(
left_doc.get_state_vector() == right_doc.get_state_vector()
&& left_doc.get_delete_sets() == right_doc.get_delete_sets(),
@@ -254,24 +245,15 @@ pub(crate) fn merge_root_update_binary(existing: &[u8], update: &[u8]) -> Result
.map_err(|err| format!("failed to merge root update: {err}"))
}
pub(crate) fn build_doc(doc_id: Option<&str>) -> Doc {
let options = DocOptions::new();
match doc_id {
Some(doc_id) => options.with_guid(doc_id.to_string()).build(),
None => options.build(),
}
}
pub(crate) fn load_doc_or_new(binary: &[u8], doc_id: Option<&str>) -> Result<Doc, String> {
let options = match doc_id {
Some(id) => DocOptions::new().with_guid(id.to_owned()),
None => DocOptions::new(),
};
if is_empty_update(binary) {
return Ok(build_doc(doc_id));
return Ok(options.build());
}
let mut doc = build_doc(doc_id);
doc
.apply_update_from_binary_v1(binary)
.map_err(|err| format!("failed to decode doc binary: {}", err))?;
Ok(doc)
Doc::try_from_binary_v1_with_options(binary, options).map_err(|err| format!("failed to decode doc binary: {err}"))
}
pub(crate) fn paths_equal(lhs: &Path, rhs: &Path) -> bool {
+63 -46
View File
@@ -7007,10 +7007,10 @@ __metadata:
languageName: node
linkType: hard
"@isaacs/nonrecursive-glob-match@npm:^1.0.3":
version: 1.0.3
resolution: "@isaacs/nonrecursive-glob-match@npm:1.0.3"
checksum: 10/b163380c2a4eab632b180c3dace65443e3064ebb58e228b5eab5630ceafd4581356aa63eb624d5634876c729e0797c45462ef2ef3ef35df0bb1bddbda6380447
"@isaacs/nonrecursive-glob-match@npm:^1.1.0":
version: 1.1.0
resolution: "@isaacs/nonrecursive-glob-match@npm:1.1.0"
checksum: 10/ef0e63803b1621f67242e0947bbc316998fc67aabe902be2b7139a818f5350ebfd3a878d535615862acbf6fb0d7de30fdc258c64b910d58c97c7a486dad40dfd
languageName: node
linkType: hard
@@ -8818,10 +8818,10 @@ __metadata:
languageName: node
linkType: hard
"@nodable/entities@npm:^2.1.0":
version: 2.1.0
resolution: "@nodable/entities@npm:2.1.0"
checksum: 10/355c55e82aebe45d4b962d16530951df51e19e3e63a27ea61ad3260c0807064619b270b9c83db10e8394f42760abd5b7f7c5b5117678c4246ce8364a4aafc637
"@nodable/entities@npm:^3.1.0":
version: 3.1.0
resolution: "@nodable/entities@npm:3.1.0"
checksum: 10/b07d97b1dac8e0bc8a124ea52cdb6d6a50a8a750592acf540e47c4740a8b96b5add8d9dcce4dfbe74e08b2ab95303c1a2078cf4ba01a085a6de88a879f45576e
languageName: node
linkType: hard
@@ -16508,6 +16508,13 @@ __metadata:
languageName: node
linkType: hard
"anynum@npm:^1.0.1":
version: 1.0.1
resolution: "anynum@npm:1.0.1"
checksum: 10/096acef76cc8b9f34d43ec37ae9ba7a3d4e2e8c722a0dd59a78995248a8eb4021713ee91b55de106366ac4eaa47578ceb0fffe9829ef01d78b20f9fd6d412a88
languageName: node
linkType: hard
"app-builder-lib@npm:^26.15.0":
version: 26.15.7
resolution: "app-builder-lib@npm:26.15.7"
@@ -21243,28 +21250,29 @@ __metadata:
languageName: node
linkType: hard
"fast-xml-builder@npm:^1.2.0":
version: 1.2.0
resolution: "fast-xml-builder@npm:1.2.0"
"fast-xml-builder@npm:^1.3.2":
version: 1.3.2
resolution: "fast-xml-builder@npm:1.3.2"
dependencies:
path-expression-matcher: "npm:^1.5.0"
xml-naming: "npm:^0.1.0"
checksum: 10/5948add7796879d03b6c779cbb17f2f203a41cdf23dfaaa4789c65078a36376cd0709a6586701e980e3d244ebd5fdb35db1235ccb5e4fb9e9abfd8c51e7b8813
path-expression-matcher: "npm:^1.6.2"
xml-naming: "npm:^0.3.0"
checksum: 10/147cba62efaf1ef66598c2abb2cf816d44159fe2e24a4655a9c5e9e52ff972947d860eb24222bdb1470bf50c97f7671f67eab8d6310cc6e23201b6e021dfe731
languageName: node
linkType: hard
"fast-xml-parser@npm:^5.8.0":
version: 5.8.0
resolution: "fast-xml-parser@npm:5.8.0"
version: 5.12.1
resolution: "fast-xml-parser@npm:5.12.1"
dependencies:
"@nodable/entities": "npm:^2.1.0"
fast-xml-builder: "npm:^1.2.0"
path-expression-matcher: "npm:^1.5.0"
strnum: "npm:^2.3.0"
xml-naming: "npm:^0.1.0"
"@nodable/entities": "npm:^3.1.0"
fast-xml-builder: "npm:^1.3.2"
is-unsafe: "npm:^2.0.3"
path-expression-matcher: "npm:^1.6.2"
strnum: "npm:^2.5.1"
xml-naming: "npm:^0.3.0"
bin:
fxparser: src/cli/cli.js
checksum: 10/0167d17d5275c95e005639f8fca7b4d88fec3fd013063725280f4e982313b1c798e4565d5ced7f61ce10e8f0d876a1976492cc8ac27da3080915ff549fd00705
checksum: 10/eda4e8f1874bf58b0f6f8bde03551d45ee3ecffae0abd38e0fb523a7410ca228dbff074bcbe7e1892635cf96875165c74c491dfe9cf59fe8db6cb7d4cb505a33
languageName: node
linkType: hard
@@ -22097,24 +22105,24 @@ __metadata:
linkType: hard
"glob@npm:^13.0.0, glob@npm:^13.0.1, glob@npm:^13.0.6":
version: 13.0.6
resolution: "glob@npm:13.0.6"
version: 13.0.7
resolution: "glob@npm:13.0.7"
dependencies:
minimatch: "npm:^10.2.2"
minipass: "npm:^7.1.3"
path-scurry: "npm:^2.0.2"
checksum: 10/201ad69e5f0aa74e1d8c00a481581f8b8c804b6a4fbfabeeb8541f5d756932800331daeba99b58fb9e4cd67e12ba5a7eba5b82fb476691588418060b84353214
checksum: 10/1ef7fe26d21a74f0a195a28f30f8298cceb7d88e0d9748f034a9f8e780b34585e18d703c26b9eba99986edc1828dba580d0543e3fcd796a7060d9bdbdf759723
languageName: node
linkType: hard
"glob@npm:^14.0.3":
version: 14.0.3
resolution: "glob@npm:14.0.3"
version: 14.0.6
resolution: "glob@npm:14.0.6"
dependencies:
minimatch: "npm:^11.0.2"
minimatch: "npm:^11.0.5"
minipass: "npm:^7.1.3"
path-scurry: "npm:^3.0.0"
checksum: 10/d993e6e40db60fe7963f3a097dcae17d48465c521eec1f984f13bad94e8648db0ebc9006f8a2f7a97796f71e7be4c637da22c224a7a9eb53458f76278de0fa53
checksum: 10/6674454c61d4146ce33c9bfa7980273c16f14893538805ca4c38ca4de7fc1823f01ea4db10da8db4e2d18391fa58c9ad6b72b59b0598ac60b8bce746429e84ea
languageName: node
linkType: hard
@@ -23505,6 +23513,13 @@ __metadata:
languageName: node
linkType: hard
"is-unsafe@npm:^2.0.3":
version: 2.0.3
resolution: "is-unsafe@npm:2.0.3"
checksum: 10/c3287873db0107ff00933b6cea08bb732479af2fefe3a9fe3f49086e094ba7dc7ce09d3e5ce90417a4d604cf8aaedc74c554257a75e1cacbb93e99460bb732ef
languageName: node
linkType: hard
"is-upper-case@npm:^2.0.2":
version: 2.0.2
resolution: "is-upper-case@npm:2.0.2"
@@ -25978,13 +25993,13 @@ __metadata:
languageName: node
linkType: hard
"minimatch@npm:^11.0.2, minimatch@npm:^11.0.4":
version: 11.0.4
resolution: "minimatch@npm:11.0.4"
"minimatch@npm:^11.0.4, minimatch@npm:^11.0.5":
version: 11.0.9
resolution: "minimatch@npm:11.0.9"
dependencies:
"@isaacs/nonrecursive-glob-match": "npm:^1.0.3"
"@isaacs/nonrecursive-glob-match": "npm:^1.1.0"
brace-expansion: "npm:^5.0.12"
checksum: 10/a6f56790748cfa06e20ce0fd718fc311cb862415d5ece7b7e09f9e83c9d594e070570eee1d32b3e0dbf9656b7def66d9aba3ab1567f5fe091377132ba813e39a
checksum: 10/5a17bd87033371c50dbabead4b461d3a40ffedb496939a2da14f67f1381813db959ec0d32716cfe4eaa83f3ae945cdee2343398be20f7d195799d8b12981565d
languageName: node
linkType: hard
@@ -27742,10 +27757,10 @@ __metadata:
languageName: node
linkType: hard
"path-expression-matcher@npm:^1.5.0":
version: 1.5.0
resolution: "path-expression-matcher@npm:1.5.0"
checksum: 10/28303bb9ee6831e6df14c10cd3f3f7b2d7c8d7f788d8bdb7440136fd696064c82a3e264999a0764d28e39f698275fc03a5493bec93c57ef4a22566280367dd64
"path-expression-matcher@npm:^1.6.2":
version: 1.6.2
resolution: "path-expression-matcher@npm:1.6.2"
checksum: 10/d7786b170933dd82ed897144daed7d54dbe2e7b7d8684182ee9bf51a966cc92548788e2f49280922202a0186409008d816aefa37ed4650e4038184181a73c4bd
languageName: node
linkType: hard
@@ -31080,10 +31095,12 @@ __metadata:
languageName: node
linkType: hard
"strnum@npm:^2.3.0":
version: 2.3.0
resolution: "strnum@npm:2.3.0"
checksum: 10/ce79c86bb2b96f053eb28e14924c13604e22977dcdece9aa914c25e16cc5c4bbe048976fe0b2a4decf08a1e13600b820749cea25463fc0e5fee3078339e0a457
"strnum@npm:^2.5.1":
version: 2.5.1
resolution: "strnum@npm:2.5.1"
dependencies:
anynum: "npm:^1.0.1"
checksum: 10/97918f9e6a30a9a79b4de616e09778e846f8cbce1230ed67c1b68db06e3baaf8c89e4c255ef6eafb2404b26f2bd59627e94647c2389388e5897e5707dbe98178
languageName: node
linkType: hard
@@ -33470,10 +33487,10 @@ __metadata:
languageName: node
linkType: hard
"xml-naming@npm:^0.1.0":
version: 0.1.0
resolution: "xml-naming@npm:0.1.0"
checksum: 10/45abd94ba64a508bda3f4d0b70e49811a3c3542596252c213caf47c858bbe9bba365ebba8eeff68e2a876e22a1bf6855d90cd2019b2f28012cebb167a4df2293
"xml-naming@npm:^0.3.0":
version: 0.3.0
resolution: "xml-naming@npm:0.3.0"
checksum: 10/1a09c3f14747bf243d4bbcfdb9917c40e9cbb4b6464f2b9fe6927976770dfa38eedfe94190b5b6db470f22429fd4bda688b1831ca36a769a6745ccb9bb595150
languageName: node
linkType: hard