-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/release/0.13.1'
- Loading branch information
Showing
17 changed files
with
244 additions
and
194 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,7 @@ | ||
{ | ||
"name": "zeed", | ||
"type": "module", | ||
"version": "0.11.5", | ||
"version": "0.13.1", | ||
"description": "🌱 Simple foundation library", | ||
"author": { | ||
"name": "Dirk Holtwick", | ||
"email": "[email protected]", | ||
"url": "https://holtwick.de" | ||
}, | ||
"license": "MIT", | ||
"funding": { | ||
"type": "GitHub Sponsors ❤", | ||
"url": "https://github.com/sponsors/holtwick" | ||
}, | ||
"homepage": "https://github.com/holtwick/zeed", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/holtwick/zeed.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/holtwick/zeed/issues" | ||
}, | ||
"keywords": [ | ||
"foundation", | ||
"typescript", | ||
|
@@ -31,7 +12,26 @@ | |
"utils", | ||
"zeed" | ||
], | ||
"homepage": "https://github.com/holtwick/zeed", | ||
"bugs": { | ||
"url": "https://github.com/holtwick/zeed/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/holtwick/zeed.git" | ||
}, | ||
"funding": { | ||
"type": "GitHub Sponsors ❤", | ||
"url": "https://github.com/sponsors/holtwick" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Dirk Holtwick", | ||
"email": "[email protected]", | ||
"url": "https://holtwick.de" | ||
}, | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.all.d.ts", | ||
|
@@ -47,35 +47,37 @@ | |
"files": [ | ||
"dist" | ||
], | ||
"engines": { | ||
"node": ">=14.13.1" | ||
}, | ||
"scripts": { | ||
"build": "nr clean && nr build:tsup", | ||
"build:tsup": "tsup src/index.all.ts --dts-only && tsup src/index.browser.ts src/index.node.ts", | ||
"check": "tsc --noEmit -p tsconfig.json", | ||
"circles": "madge --circular --summary --orphans --leaves --warning --extensions ts src", | ||
"clean": "rm -rf dist", | ||
"coverage": "vitest --run --coverage", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix", | ||
"prepublishOnly": "nr build && nr test:publish", | ||
"prepublishOnly": "nr build && nr circles && nr lint && nr test:publish", | ||
"release": "na version patch && na publish", | ||
"start": "nr watch", | ||
"test": "vitest", | ||
"test:publish": "vitest --run", | ||
"watch": "nr build:tsup -- --watch", | ||
"release": "na version patch && na publish" | ||
"watch": "nr build:tsup -- --watch" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.41.0", | ||
"@antfu/ni": "^0.21.6", | ||
"@types/node": "^20.5.6", | ||
"@antfu/ni": "^0.21.8", | ||
"@types/node": "<20", | ||
"c8": "^8.0.1", | ||
"cross-fetch": "^4.0.0", | ||
"esbuild": "^0.19.2", | ||
"eslint": "^8.47.0", | ||
"eslint": "^8.48.0", | ||
"madge": "^6.1.0", | ||
"tsup": "^7.2.0", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.4.9", | ||
"vitest": "^0.34.2" | ||
"vitest": "^0.34.3" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Original at https://github.com/dmonad/lib0 | ||
* | ||
* Utility functions to work with buffers (Uint8Array). | ||
*/ | ||
|
||
/** | ||
* Create Uint8Array with initial content from buffer | ||
*/ | ||
export function createUint8ArrayViewFromArrayBuffer(buffer: ArrayBuffer, byteOffset: number, length: number) { | ||
return new Uint8Array(buffer, byteOffset, length) | ||
} | ||
|
||
/** | ||
* Create Uint8Array with initial content from buffer | ||
*/ | ||
export function createUint8ArrayFromArrayBuffer(buffer: ArrayBuffer) { | ||
return new Uint8Array(buffer) | ||
} |
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
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
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.