refactor: update to new libraries/tooling

This commit is contained in:
Derrick Hammer 2023-07-02 12:04:47 -04:00
parent b287cc3aff
commit 7d6a7bda47
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
5 changed files with 380 additions and 2016 deletions

View File

@ -1,52 +0,0 @@
{
"preset": [
"presetter-preset-rollup",
"presetter-preset-esm"
],
"config": {
"tsconfig": {
"compilerOptions": {
"lib": [
"ES2021",
"dom"
]
}
},
"prettier": {
"singleQuote": false
},
"rollup": {
"output": [
{
"file": "dist/index.js",
"format": "cjs",
"sourcemap": "inline",
"inlineDynamicImports": true
}
],
"plugins": [
[
"@apply @rollup/plugin-node-resolve[default]",
{
"browser": true
}
],
[
"@apply @rollup/plugin-wasm[default]",
{
"targetEnv": "auto-inline"
}
],
[
"@apply @rollup/plugin-node-resolve[default]",
{
"preferBuiltins": false
}
]
]
}
},
"variable": {
"source": "src"
}
}

View File

@ -1,21 +0,0 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog"
],
"@semantic-release/git",
],
"branches": [
"master",
{
name: "develop",
prerelease: true
},
{
name: "develop-*",
prerelease: true
},
]
}

2300
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +1,14 @@
{ {
"name": "@lumeweb/kernel", "name": "@lumeweb/kernel",
"version": "0.1.0", "version": "0.1.0",
"main": "lib/index.js", "type": "module",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
"exports": {
"require": "./lib/index.js",
"import": "./lib/index.mjs"
},
"devDependencies": { "devDependencies": {
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.26",
"@rollup/plugin-wasm": "^6.1.3", "@rollup/plugin-wasm": "^6.1.3",
"@semantic-release/changelog": "^6.0.3", "@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1", "@semantic-release/git": "^10.0.1",
"binconv": "^0.2.0", "binconv": "^0.2.0",
"presetter": "*", "presetter": "*",
"presetter-preset-esm": "^4.0.1",
"presetter-preset-rollup": "^4.0.1",
"semantic-release": "^21.0.5" "semantic-release": "^21.0.5"
}, },
"readme": "ERROR: No README data found!", "readme": "ERROR: No README data found!",
@ -26,8 +19,8 @@
"clean:rollup": "shx rm -rf dist" "clean:rollup": "shx rm -rf dist"
}, },
"dependencies": { "dependencies": {
"@lumeweb/libkmodule": "^0.1.0-develop.4", "@lumeweb/libkernel": "0.1.0-develop.11",
"@lumeweb/libweb": "0.2.0-develop.9", "@lumeweb/libweb": "0.2.0-develop.21",
"binconv": "^0.2.0" "binconv": "^0.2.0"
} }
} }

View File

@ -5,15 +5,13 @@ import { KERNEL_DISTRO, KERNEL_VERSION } from "./version.js";
import { import {
addContextToErr, addContextToErr,
bufToB64, bufToB64,
deriveChildKey,
downloadObject,
encodeU64, encodeU64,
Err, Err,
objAsString, objAsString,
Portal,
sha512, sha512,
} from "@lumeweb/libweb"; } from "@lumeweb/libkernel";
import { moduleQuery, presentKeyData } from "@lumeweb/libkmodule"; import { deriveChildKey, downloadObject } from "@lumeweb/libweb";
import type { moduleQuery, presentKeyData } from "@lumeweb/libkernel/module";
import { readableStreamToUint8Array } from "binconv"; import { readableStreamToUint8Array } from "binconv";
// WorkerLaunchFn is the type signature of the function that launches the // WorkerLaunchFn is the type signature of the function that launches the