mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a default export for the native binding in the frontend native module, allowing easier imports. - **Refactor** - Streamlined and updated Rust-to-JavaScript type conversions and lifetime handling for improved safety and consistency. - Improved object and array construction in Rust modules for more idiomatic usage. - Simplified boolean and null value handling in JavaScript interop layers. - **Chores** - Upgraded several dependencies and development tools to newer versions across backend, frontend, and common packages. - Updated build scripts for the frontend native package to simplify commands. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
42 lines
976 B
JSON
42 lines
976 B
JSON
{
|
|
"name": "@affine/server-native",
|
|
"version": "0.21.0",
|
|
"engines": {
|
|
"node": ">= 10.16.0 < 11 || >= 11.8.0"
|
|
},
|
|
"main": "./index.js",
|
|
"module": "./index.js",
|
|
"types": "index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"require": "./server-native.node",
|
|
"import": "./index.js",
|
|
"types": "./index.d.ts"
|
|
}
|
|
},
|
|
"napi": {
|
|
"binaryName": "server-native",
|
|
"targets": [
|
|
"aarch64-apple-darwin",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-pc-windows-msvc",
|
|
"x86_64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
"x86_64-unknown-linux-gnu"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"test": "node --test ./__tests__/**/*.spec.js",
|
|
"bench": "node ./benchmark/index.js",
|
|
"build": "napi build --release --strip --no-const-enum",
|
|
"build:debug": "napi build"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "3.0.0-alpha.81",
|
|
"lib0": "^0.2.99",
|
|
"tiktoken": "^1.0.17",
|
|
"tinybench": "^4.0.0",
|
|
"yjs": "^13.6.21"
|
|
}
|
|
}
|