Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

chore: update deps #69

Merged
merged 2 commits into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
'use strict'

const path = require('path')

/** @type {import('aegir').Options["build"]["config"]} */
const esbuild = {
inject: [path.join(__dirname, './scripts/node-globals.js')]
}

/** @type {import('aegir').PartialOptions} */
module.exports = {
webpack: {
node: {
// this is needed until level stops using node buffers in browser code
Buffer: true
build: {
bundlesizeMax: '65KB'
},
test: {
browser: {
config: {
buildConfig: esbuild
}
}
}
}
}
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,19 @@
"homepage": "https://github.com/ipfs/js-datastore-level#readme",
"dependencies": {
"datastore-core": "^3.0.0",
"interface-datastore": "^3.0.3",
"interface-datastore": "^3.0.6",
"level": "^6.0.1"
},
"devDependencies": {
"aegir": "^30.3.0",
"aegir": "^33.1.0",
"assert": "^2.0.0",
"buffer": "^6.0.3",
"chai": "^4.2.0",
"cids": "^1.1.5",
"dirty-chai": "^2.0.1",
"level-mem": "^5.0.1",
"rimraf": "^3.0.0"
"rimraf": "^3.0.0",
"util": "^0.12.3"
},
"eslintConfig": {
"extends": "ipfs"
Expand Down
2 changes: 2 additions & 0 deletions scripts/node-globals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// @ts-nocheck
export const { Buffer } = require('buffer')
achingbrain marked this conversation as resolved.
Show resolved Hide resolved