Skip to content

Commit

Permalink
Mise à jour dépendances
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Jul 15, 2024
1 parent 4269cb4 commit 2f62275
Show file tree
Hide file tree
Showing 16 changed files with 11,497 additions and 8,679 deletions.
34 changes: 1 addition & 33 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
import path, { dirname } from "path";
import { fileURLToPath } from "url";
import { createRequire } from "module";

const require = createRequire(import.meta.url);

const __dirname = dirname(fileURLToPath(import.meta.url));

// https://github.com/node-webrtc/node-webrtc/issues/636#issuecomment-774171409
process.on("beforeExit", (code) => process.exit(code));

// https://github.com/ipfs/aegir/blob/master/md/migration-to-v31.md
const esbuild = {
// this will inject all the named exports from 'node-globals.js' as globals
inject: [path.join(__dirname, "./scripts/node-globals.js")],
external: ["fs", "path", "os", "chokidar", "url", "zlib", "rimraf"],
plugins: [
{
name: "node built ins", // this will make the bundler resolve node builtins to the respective browser polyfill
setup(build) {
build.onResolve({ filter: /^stream$/ }, () => {
return { path: require.resolve("stream-browserify") };
});
build.onResolve({ filter: /^os$/ }, () => {
return { path: require.resolve("os-browserify") };
});
build.onResolve({ filter: /^crypto$/ }, () => {
return { path: require.resolve("crypto-browserify") };
});
build.onResolve({ filter: /^fs/ }, () => {
return { path: require.resolve("browserify-fs") };
});
},
},
],
external: ["rimraf"],
};

/** @type {import('aegir').PartialOptions} */
Expand Down
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

22 changes: 0 additions & 22 deletions .eslintrc.cjs

This file was deleted.

31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
{
ignores: ["**/dist/**", "**/.vitepress/cache/**"],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.{js,ts}"],
languageOptions: {
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
},
ignores: ["**/node_modules/**", "**/dist/**", "**/coverage/**"],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
];
78 changes: 40 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@constl/bohr-db",
"version": "1.1.0",
"version": "1.1.1",
"description": "Type-safe databases for orbit-db.",
"author": "Julien Jean Malard-Adam",
"keywords": [
Expand All @@ -11,61 +11,63 @@
"publishConfig": {
"access": "public"
},
"main": "./dist/src/index.js",
"main": "./dist/index.js",
"type": "module",
"types": "./dist/src/index.d.ts",
"exports": "./dist/src/index.js",
"types": "./dist/index.d.ts",
"exports": "./dist/index.js",
"scripts": {
"clean": "rimraf dist",
"compile": "pnpm updateVersion && pnpm format && pnpm clean && pnpm tspc -p tsconfig.build.json",
"compile": "pnpm tspc -p tsconfig.json",
"compile:prod": "pnpm updateVersion && pnpm format && pnpm clean && pnpm tspc -p tsconfig.build.json",
"test": "pnpm compile && pnpm aegir test -t node --cov -- --exit",
"format": "pnpm prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\" && pnpm eslint --ext .js,.ts src",
"release": "pnpm test && (git commit -a -m 'version' || true) && pnpm publish",
"format": "pnpm prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\" && pnpm eslint",
"release": "pnpm test && pnpm compile:prod && (git commit -a -m 'version' || true) && pnpm publish",
"updateVersion": "pnpm genversion --es6 --semi src/version.ts"
},
"dependencies": {
"@orbitdb/core": "^2.0.1",
"@orbitdb/feed-db": "^1.0.0",
"@orbitdb/ordered-keyvalue-db": "^1.0.0",
"@orbitdb/set-db": "^1.0.0",
"ajv": "^8.12.0",
"@orbitdb/core": "^2.2.0",
"@orbitdb/feed-db": "^1.0.1",
"@orbitdb/ordered-keyvalue-db": "^1.0.1",
"@orbitdb/set-db": "^1.0.2",
"ajv": "^8.17.1",
"events": "^3.3.0",
"helia": "^3.0.1",
"uuid": "^9.0.1"
"helia": "^4.2.4",
"uuid": "^10.0.0"
},
"devDependencies": {
"@chainsafe/libp2p-gossipsub": "^12.0.0",
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.1",
"@chainsafe/libp2p-gossipsub": "^13.1.0",
"@chainsafe/libp2p-noise": "^15.1.0",
"@chainsafe/libp2p-yamux": "^6.0.2",
"@constl/orbit-db-types": "^2.0.0",
"@helia/block-brokers": "^2.0.0",
"@libp2p/circuit-relay-v2": "^1.0.12",
"@libp2p/identify": "^1.0.11",
"@libp2p/webrtc": "^4.0.16",
"@libp2p/websockets": "^8.0.12",
"@types/mocha": "^10.0.6",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"aegir": "^42.2.2",
"blockstore-core": "^4.3.10",
"blockstore-level": "^1.1.7",
"@eslint/js": "^9.7.0",
"@helia/block-brokers": "^3.0.2",
"@libp2p/circuit-relay-v2": "^1.1.2",
"@libp2p/identify": "^2.1.2",
"@libp2p/webrtc": "^4.1.2",
"@libp2p/websockets": "^8.1.2",
"@types/mocha": "^10.0.7",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"aegir": "^44.0.1",
"blockstore-core": "^4.4.1",
"blockstore-level": "^1.1.8",
"browserify-fs": "^1.0.0",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
"eslint": "^8.56.0",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"filters": "link:@libp2p/websockets/filters",
"genversion": "^3.2.0",
"libp2p": "^1.2.0",
"mocha": "^10.2.0",
"libp2p": "^1.8.1",
"mocha": "^10.6.0",
"os-browserify": "^0.3.0",
"prettier": "^3.2.4",
"prettier": "^3.3.3",
"process": "^0.11.10",
"rimraf": "^5.0.5",
"ts-patch": "^3.1.2",
"typescript": "^5.3.3",
"typescript-transform-paths": "^3.4.6"
"rimraf": "^6.0.1",
"ts-patch": "^3.2.1",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.0",
"typescript-transform-paths": "^3.4.7"
},
"resolutions": {
"iso-constants": "git+https://github.com/inverted-capital/iso-constants.git#patch-1"
Expand Down
Loading

0 comments on commit 2f62275

Please sign in to comment.