Skip to content

Commit 912e0e6

Browse files
deps: bump aegir from 38.1.8 to 39.0.13 (#104)
* deps: bump aegir from 38.1.8 to 39.0.13 Bumps [aegir](https://github.com/ipfs/aegir) from 38.1.8 to 39.0.13. - [Release notes](https://github.com/ipfs/aegir/releases) - [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md) - [Commits](ipfs/aegir@v38.1.8...v39.0.13) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain <alex@achingbrain.net>
1 parent 8102b91 commit 912e0e6

18 files changed

+17
-116
lines changed

.gitignore

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
# Coverage directory used by tools like istanbul
2-
.nyc_output
3-
1+
node_modules
42
build
53
dist
6-
docs
7-
8-
# Dependency directory
9-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
4+
.docs
5+
.coverage
106
node_modules
11-
# Lock files
127
package-lock.json
138
yarn.lock
14-
.clinic
15-
coverage
9+
.vscode

package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
"interface",
1616
"libp2p"
1717
],
18-
"engines": {
19-
"node": ">=16.0.0",
20-
"npm": ">=7.0.0"
21-
},
2218
"private": true,
2319
"scripts": {
2420
"reset": "aegir run clean && aegir clean ./node_modules ./package-lock.json packages/*/node_modules packages/*/package-lock.json packages/*/dist",
@@ -37,7 +33,7 @@
3733
"release": "aegir run release"
3834
},
3935
"dependencies": {
40-
"aegir": "^38.0.0"
36+
"aegir": "^39.0.13"
4137
},
4238
"workspaces": [
4339
"packages/*"

packages/protons-benchmark/package.json

+1-25
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,8 @@
1111
"bugs": {
1212
"url": "https://github.com/ipfs/protons/issues"
1313
},
14-
"engines": {
15-
"node": ">=16.0.0",
16-
"npm": ">=7.0.0"
17-
},
1814
"type": "module",
1915
"types": "./dist/src/index.d.ts",
20-
"typesVersions": {
21-
"*": {
22-
"*": [
23-
"*",
24-
"dist/*",
25-
"dist/src/*",
26-
"dist/src/*/index"
27-
],
28-
"src/*": [
29-
"*",
30-
"dist/*",
31-
"dist/src/*",
32-
"dist/src/*/index"
33-
]
34-
}
35-
},
3616
"files": [
3717
"src",
3818
"dist",
@@ -43,10 +23,6 @@
4323
".": {
4424
"types": "./dist/src/index.d.ts",
4525
"import": "./dist/src/index.js"
46-
},
47-
"./status": {
48-
"types": "./dist/src/status.d.ts",
49-
"import": "./dist/src/status.js"
5026
}
5127
},
5228
"eslintConfig": {
@@ -73,7 +49,7 @@
7349
"@protobuf-ts/plugin": "^2.8.1",
7450
"@protobuf-ts/runtime": "^2.8.1",
7551
"@types/benchmark": "^2.1.1",
76-
"aegir": "^38.0.0",
52+
"aegir": "^39.0.13",
7753
"benchmark": "^2.1.4",
7854
"pbjs": "^0.0.14",
7955
"protobufjs": "^7.0.0",

packages/protons-benchmark/src/decode.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ $ npx playwright-test dist/src/index.js --runner benchmark
66
*/
77

88
import Benchmark from 'benchmark'
9-
109
import { decodeTest as pbjsDecodeTest } from './pbjs/bench.js'
1110
import { Test as ProtobufjsTest } from './protobufjs/bench.js'
1211
import { Test as ProtonsTest } from './protons/bench.js'

packages/protons-benchmark/src/encode.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ $ npx playwright-test dist/src/index.js --runner benchmark
66
*/
77

88
import Benchmark from 'benchmark'
9-
109
import { encodeTest as pbjsEncodeTest } from './pbjs/bench.js'
1110
import { Test as ProtobufjsTest } from './protobufjs/bench.js'
1211
import { Test as ProtonsTest } from './protons/bench.js'

packages/protons-benchmark/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ $ npx playwright-test dist/src/index.js --runner benchmark
66
*/
77

88
import { expect } from 'aegir/chai'
9-
109
import Benchmark from 'benchmark'
11-
1210
import { encodeTest as pbjsEncodeTest, decodeTest as pbjsDecodeTest } from './pbjs/bench.js'
1311
import { Test as ProtobufTsTest } from './protobuf-ts/bench.js'
1412
import { Test as ProtobufjsTest } from './protobufjs/bench.js'

packages/protons-benchmark/src/rpc.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ $ node dist/src/index.js
55
$ npx playwright-test dist/src/index.js --runner benchmark
66
*/
77

8-
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
9-
108
import Benchmark from 'benchmark'
11-
9+
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
1210
import { RPC as ProtobufjsRPC } from './protobufjs/rpc.js'
1311
import { RPC as ProtonsRPC } from './protons/rpc.js'
1412

packages/protons-runtime/package.json

+1-25
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,8 @@
1111
"bugs": {
1212
"url": "https://github.com/ipfs/protons/issues"
1313
},
14-
"engines": {
15-
"node": ">=16.0.0",
16-
"npm": ">=7.0.0"
17-
},
1814
"type": "module",
1915
"types": "./dist/src/index.d.ts",
20-
"typesVersions": {
21-
"*": {
22-
"*": [
23-
"*",
24-
"dist/*",
25-
"dist/src/*",
26-
"dist/src/*/index"
27-
],
28-
"src/*": [
29-
"*",
30-
"dist/*",
31-
"dist/src/*",
32-
"dist/src/*/index"
33-
]
34-
}
35-
},
3616
"files": [
3717
"src",
3818
"dist",
@@ -43,10 +23,6 @@
4323
".": {
4424
"types": "./dist/src/index.d.ts",
4525
"import": "./dist/src/index.js"
46-
},
47-
"./status": {
48-
"types": "./dist/src/status.d.ts",
49-
"import": "./dist/src/status.js"
5026
}
5127
},
5228
"eslintConfig": {
@@ -152,7 +128,7 @@
152128
"uint8arraylist": "^2.4.3"
153129
},
154130
"devDependencies": {
155-
"aegir": "^38.0.0"
131+
"aegir": "^39.0.13"
156132
},
157133
"peerDependencies": {
158134
"uint8arraylist": "^2.3.2"

packages/protons-runtime/src/codecs/message.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { createCodec, CODEC_TYPES, EncodeOptions } from '../codec.js'
2-
import type { Codec } from '../codec.js'
1+
import { createCodec, CODEC_TYPES, type EncodeOptions, type Codec } from '../codec.js'
32
import type { Reader, Writer } from '../index.js'
43

54
export interface Factory<A, T> {

packages/protons-runtime/src/decode.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import type { Uint8ArrayList } from 'uint8arraylist'
2-
3-
import type { Codec } from './codec.js'
41
import { reader } from './utils.js'
2+
import type { Codec } from './codec.js'
3+
import type { Uint8ArrayList } from 'uint8arraylist'
54

65
export function decodeMessage <T> (buf: Uint8Array | Uint8ArrayList, codec: Codec<T>): T {
76
const r = reader(buf instanceof Uint8Array ? buf : buf.subarray())

packages/protons-runtime/src/encode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Codec } from './codec.js'
21
import { writer } from './utils.js'
2+
import type { Codec } from './codec.js'
33

44
export function encodeMessage <T> (message: T, codec: Codec<T>): Uint8Array {
55
const w = writer()

packages/protons-runtime/src/utils.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import util from 'protobufjs/src/util/minimal.js'
88
import WriterClass from 'protobufjs/src/writer.js'
99
// @ts-expect-error no types
1010
import WriterBufferClass from 'protobufjs/src/writer_buffer.js'
11-
1211
import type { Reader, Writer } from './index.js'
1312

1413
function configure (): void {

packages/protons/bin/protons.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#! /usr/bin/env node
22

33
import meow from 'meow'
4-
54
import { generate } from '../src/index.js'
65

76
async function main (): Promise<void> {

packages/protons/package.json

+1-25
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,11 @@
1111
"bugs": {
1212
"url": "https://github.com/ipfs/protons/issues"
1313
},
14-
"engines": {
15-
"node": ">=16.0.0",
16-
"npm": ">=7.0.0"
17-
},
1814
"bin": {
1915
"protons": "./dist/bin/protons.js"
2016
},
2117
"type": "module",
2218
"types": "./dist/src/index.d.ts",
23-
"typesVersions": {
24-
"*": {
25-
"*": [
26-
"*",
27-
"dist/*",
28-
"dist/src/*",
29-
"dist/src/*/index"
30-
],
31-
"src/*": [
32-
"*",
33-
"dist/*",
34-
"dist/src/*",
35-
"dist/src/*/index"
36-
]
37-
}
38-
},
3919
"files": [
4020
"src",
4121
"dist",
@@ -46,10 +26,6 @@
4626
".": {
4727
"types": "./dist/src/index.d.ts",
4828
"import": "./dist/src/index.js"
49-
},
50-
"./status": {
51-
"types": "./dist/src/status.d.ts",
52-
"import": "./dist/src/status.js"
5329
}
5430
},
5531
"eslintConfig": {
@@ -157,7 +133,7 @@
157133
"protobufjs-cli": "^1.0.0"
158134
},
159135
"devDependencies": {
160-
"aegir": "^38.0.0",
136+
"aegir": "^39.0.13",
161137
"long": "^5.2.0",
162138
"pbjs": "^0.0.14",
163139
"protobufjs": "^7.0.0",

packages/protons/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import fs from 'fs/promises'
44
import path from 'path'
55
import { promisify } from 'util'
6-
76
import { main as pbjs } from 'protobufjs-cli/pbjs.js'
87

98
export enum CODEC_TYPES {

packages/protons/test/compatibility.spec.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
/* eslint-env mocha */
22

33
import fs from 'fs'
4-
54
import { expect } from 'aegir/chai'
6-
75
import Long from 'long'
86
import pbjs from 'pbjs'
9-
import protobufjs, { Type as PBType } from 'protobufjs'
10-
7+
import protobufjs, { type Type as PBType } from 'protobufjs'
118
import { Basic, Empty } from './fixtures/basic.js'
9+
import { Message as Bitswap } from './fixtures/bitswap.js'
1210
import { CircuitRelay } from './fixtures/circuit.js'
1311
import { Optional, OptionalEnum } from './fixtures/optional.js'
1412
import { Peer } from './fixtures/peer.js'
1513
import { Singular, SingularEnum } from './fixtures/singular.js'
1614
import { AllTheTypes, AnEnum } from './fixtures/test.js'
17-
import { Message as Bitswap } from './fixtures/bitswap.js'
1815

1916
function longifyBigInts (obj: any): any {
2017
const output = {
@@ -280,7 +277,7 @@ describe('encode', () => {
280277
}
281278

282279
const root = protobufjs.loadSync('./test/fixtures/circuit.proto')
283-
// @ts-expect-error
280+
// @ts-expect-error root.nested is possibly undefined
284281
const PbCircuitRelay = root.nested.CircuitRelay as PBType
285282

286283
const protobufJsBuf = PbCircuitRelay.encode(PbCircuitRelay.fromObject(message)).finish()

packages/protons/test/maps.spec.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/* eslint-env mocha */
22

33
import { expect } from 'aegir/chai'
4-
54
import Long from 'long'
65
import protobufjs from 'protobufjs'
7-
8-
import { MapTypes, SubMessage } from './fixtures/maps.js'
6+
import { MapTypes, type SubMessage } from './fixtures/maps.js'
97

108
function longifyBigInts (obj: any): any {
119
const output = {

packages/protons/test/unsupported.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-env mocha */
22

33
import { expect } from 'aegir/chai'
4-
54
import { generate } from '../src/index.js'
65

76
describe('unsupported', () => {

0 commit comments

Comments
 (0)