mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
* integrate json-rpc repo https://github.com/deltachat/deltachat-jsonrpc * get target dir from cargo * fix clippy * use node 16 in ci use `npm i` instead of `npm ci` try fix ci script and fix a doc comment * fix get_provider_info docs * refactor function name * fix formatting make test pass fix clippy * update .gitignore * change now returns event names as id directly, no conversion method or number ids anymore also longer timeout for requesting test accounts from mailadm * fix compile after rebase * add json api to cffi and expose it in dc node * add some files to npm ignore that don't need to be in the npm package * add jsonrpc crate to set_core_version * add jsonrpc feature flag * call a jsonrpc function in segfault example * break loop on empty response * fix closing segfault thanks again to link2xt for figguring this out * activate other tests again * remove selectAccount from highlevel client * put jsonrpc stuff in own module * disable jsonrpc by default * add @deltachat/jsonrpc-client to make sure its dependencies are installed, too whwn installing dc-node * commit types.ts that dc-node has everything it needs to provide @deltachat/jsonrpc-client without an extra ts compile step * improve naming * Changes for tokio compat, upgrade to yerpc 0.3 This also changes the webserver binary to use axum in place of tide. * Improvements to typescript package * Improve docs. * improve docs, fix example * Fix CFFI for JSON-RPC changes * use stable toolchain not 1.56.0 * fix ci * try to fix ci * remove emtpy file allow unused code for new_from_arc * expose anyhow errors feature name was wrong * use multi-threaded runtime in JSON-RPC webserver * improve test setup and code style * don't wait for IO on webserver start * Bump yerpc to 0.3.1 with fix for axum server * update todo document remove specific api stuff for now, we now have the an incremental aproach on moving not the all at-once effort I though it would be * remove debug logs * changelog entry about the jsonrpc * Fix method name casings and cleanups * Improve JSON-RPC CI, no need to build things multiple times * Naming consistency: Use DeltaChat not Deltachat * Improve documentation * fix docs * adress dig's comments - description in cargo.toml - impl From<EventType> for EventTypeName - rename `CommandApi::new_from_arc` -> `CommandApi::from_arc` - pre-allocate if we know the entry count already - remove unused enumerate - remove unused serde attribute comment - rename `FullChat::from_dc_chat_id` -> `FullChat::try_from_dc_chat_id` * make it more idiomatic: rename `ContactObject::from_dc_contact -> `ContactObject::try_from_dc_contact` * apply link2xt's suggestions: - unref jsonrpc_instance in same thread it was created in - increase `max_queue_size` from 1 to 1000 * reintroduce segfault test script * remove unneeded context thanks to link2xt for pointing that out * Update deltachat-ffi/deltachat.h Co-authored-by: bjoern <r10s@b44t.com> * Update deltachat-ffi/deltachat.h Co-authored-by: bjoern <r10s@b44t.com> * make sure to use dc_str_unref instead of free on cstrings returned/owned by rust * Increase online test timeouts for CI * fix the typos thanks to ralphtheninja for finding them * restore same configure behaviour as desktop: make configure restart io with the old configuration if it had one on error * found another segfault: this time in batch_set_config * remove print from test * make dcn_json_rpc_request return undefined instead of not returning this might have been the cause for the second segfault * add set_config_from_qr to jsonrpc * add `add_device_message` to jsonrpc * jsonrpc: add `get_fresh_msgs` and `get_fresh_msg_cnt` * jsonrpc: add dm_chat_contact to ChatListItemFetchResult * add webxdc methods to jsonrpc: - `webxdc_send_status_update` - `webxdc_get_status_updates` - `message_get_webxdc_info` * add `chat_get_media` to jsonrpc also add viewtype wrapper enum and use it in `MessageObject`, additionally to using it in `chat_get_media` * use camelCase in all js object properties * Add check_qr function to jsonrpc * Fixed clippy errors and formatting * Fixed formatting * fix changelog ordering after rebase * fix compile after merging in master branch Co-authored-by: Simon Laux <mobile.info@simonlaux.de> Co-authored-by: Simon Laux <Simon-Laux@users.noreply.github.com> Co-authored-by: bjoern <r10s@b44t.com> Co-authored-by: flipsimon <28535045+flipsimon@users.noreply.github.com>
65 lines
2.5 KiB
JSON
65 lines
2.5 KiB
JSON
{
|
|
"dependencies": {
|
|
"@deltachat/jsonrpc-client": "file:deltachat-jsonrpc/typescript",
|
|
"debug": "^4.1.1",
|
|
"napi-macros": "^2.0.0",
|
|
"node-gyp-build": "^4.1.0"
|
|
},
|
|
"description": "node.js bindings for deltachat-core",
|
|
"devDependencies": {
|
|
"@types/debug": "^4.1.7",
|
|
"@types/node": "^16.11.26",
|
|
"chai": "^4.2.0",
|
|
"chai-as-promised": "^7.1.1",
|
|
"esm": "^3.2.25",
|
|
"hallmark": "^2.0.0",
|
|
"mocha": "^8.2.1",
|
|
"node-fetch": "^2.6.7",
|
|
"node-gyp": "^9.0.0",
|
|
"opn-cli": "^5.0.0",
|
|
"prebuildify": "^3.0.0",
|
|
"prebuildify-ci": "^1.0.4",
|
|
"prettier": "^2.0.5",
|
|
"typedoc": "^0.17.0",
|
|
"typescript": "^3.9.10"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"files": [
|
|
"node/scripts/*",
|
|
"*"
|
|
],
|
|
"homepage": "https://github.com/deltachat/deltachat-core-rust/tree/master/node",
|
|
"license": "GPL-3.0-or-later",
|
|
"main": "node/dist/index.js",
|
|
"name": "deltachat-node",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/deltachat/deltachat-core-rust.git"
|
|
},
|
|
"scripts": {
|
|
"build": "npm run build:core && npm run build:bindings",
|
|
"build:bindings": "npm run build:bindings:c && npm run build:bindings:ts",
|
|
"build:bindings:c": "npm run build:bindings:c:c && npm run build:bindings:c:postinstall",
|
|
"build:bindings:c:c": "cd node && node-gyp rebuild",
|
|
"build:bindings:c:postinstall": "node node/scripts/postinstall.js",
|
|
"build:bindings:ts": "cd node && tsc",
|
|
"build:core": "npm run build:core:rust && npm run build:core:constants",
|
|
"build:core:constants": "node node/scripts/generate-constants.js",
|
|
"build:core:rust": "node node/scripts/rebuild-core.js",
|
|
"clean": "rm -rf node/dist node/build node/prebuilds node/node_modules ./target",
|
|
"download-prebuilds": "prebuildify-ci download",
|
|
"hallmark": "hallmark --fix",
|
|
"install": "node node/scripts/install.js",
|
|
"install:prebuilds": "cd node && node-gyp-build \"npm run build:core\" \"npm run build:bindings:c:postinstall\"",
|
|
"lint": "prettier --check \"node/lib/**/*.{ts,tsx}\"",
|
|
"lint-fix": "prettier --write \"node/lib/**/*.{ts,tsx}\" \"node/test/**/*.js\"",
|
|
"prebuildify": "cd node && prebuildify -t 16.13.0 --napi --strip --postinstall \"node scripts/postinstall.js --prebuild\"",
|
|
"test": "npm run test:lint && npm run test:mocha",
|
|
"test:lint": "npm run lint",
|
|
"test:mocha": "mocha -r esm node/test/test.js --growl --reporter=spec --bail"
|
|
},
|
|
"types": "node/dist/index.d.ts",
|
|
"version": "1.92.0"
|
|
} |