-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add new group create methods * Add consent states option to sync all * Update list conversations options * Move MessageDisappearingSettings into conversations * Remove auto filtering of group messages * Add disappearing messages methods to groups * Update conversations list methods * Add consent streaming * Preference streaming WIP * ConversationListItem + UserPreferences * taplo fmt * Fix ListConversationsOptions * Refactor tests * Add tests * Add more tests * Clippy * Update stream_preferences callback type * Update lint command * clippy * Add tsx and zx deps * Add version script * Add version export and generate command * Update node release workflow * lints * last clippy lints * Make test more stable * Update version and changelog --------- Co-authored-by: Andrew Plaza <[email protected]>
- Loading branch information
Showing
21 changed files
with
1,444 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@xmtp/node-bindings", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://[email protected]/xmtp/libxmtp.git", | ||
|
@@ -12,7 +12,8 @@ | |
".": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"./version.json": "./dist/version.json" | ||
}, | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
|
@@ -21,16 +22,17 @@ | |
], | ||
"scripts": { | ||
"artifacts": "napi artifacts", | ||
"build": "yarn build:clean && yarn build:release && yarn build:finish", | ||
"build": "yarn build:clean && yarn build:release && yarn build:finish && yarn generate:version", | ||
"build:clean": "rm -rf dist", | ||
"build:debug": "napi build --platform --esm", | ||
"build:finish": "mkdir dist && mv index.js dist && mv index.d.ts dist && mv *.node dist", | ||
"build:release": "napi build --platform --release --esm", | ||
"clean": "yarn build:clean && yarn test:clean", | ||
"format": "prettier -w .", | ||
"format:check": "prettier -c .", | ||
"generate:version": "tsx scripts/version.ts", | ||
"lint": "yarn lint:clippy && yarn lint:fmt", | ||
"lint:clippy": "cargo clippy --all-features --all-targets --no-deps -- -Dwarnings", | ||
"lint:clippy": "cargo clippy --locked --all-features --all-targets --no-deps -- -D warnings", | ||
"lint:fmt": "cargo fmt --check", | ||
"test": "vitest run", | ||
"test:clean": "rm -rf test/*.db3*" | ||
|
@@ -43,12 +45,14 @@ | |
"fast-glob": "^3.3.3", | ||
"prettier": "^3.5.0", | ||
"prettier-plugin-packagejson": "^2.5.8", | ||
"tsx": "^4.19.3", | ||
"typescript": "^5.7.3", | ||
"uuid": "^11.0.5", | ||
"viem": "^2.23.2", | ||
"vite": "^6.1.0", | ||
"vite-tsconfig-paths": "^5.1.4", | ||
"vitest": "^3.0.4" | ||
"vitest": "^3.0.4", | ||
"zx": "^8.3.2" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { writeFile } from 'node:fs/promises' | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'node:url' | ||
import { $ } from 'zx' | ||
|
||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = path.dirname(__filename) | ||
const distPath = path.resolve(__dirname, '../dist') | ||
|
||
const branch = (await $`git rev-parse --abbrev-ref HEAD`.text()).trim() | ||
const version = (await $`git log -1 --pretty=format:"%h"`.text()).trim() | ||
const date = ( | ||
await $`TZ=UTC git log -1 --date=iso-local --pretty=format:"%ad"`.text() | ||
).trim() | ||
|
||
const json = JSON.stringify({ branch, version, date }, null, 2) | ||
|
||
console.log(`Writing version.json to ${distPath}`) | ||
|
||
await writeFile(path.resolve(distPath, 'version.json'), json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.