From 3e3e4fb224113460bc6ae2a7b51aa96623a84ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Mon, 6 Apr 2020 10:42:04 +0200 Subject: [PATCH 1/3] update deps --- CHANGELOG.md | 1 + README.md | 2 ++ package.json | 2 +- yarn.lock | 41 ++++++++++++++++++++++++++++++++++------- 4 files changed, 38 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 852a673..1896349 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Bugfixes - fix types to be compatible with rest of libp2p typescript projects +- update it-pb-rpc to 0.1.8 (contains proper typescript types) ## [1.0.0-rc.9] - 2019-03-11 diff --git a/README.md b/README.md index e6627fa..89e2f9e 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ This repository contains TypeScript implementation of noise protocol, an encryption protocol used in libp2p. +##### Warning: Even though this package works in browser, it will bundle around 1.5Mb of code + ## Usage Install with `yarn add libp2p-noise` or `npm i libp2p-noise`. diff --git a/package.json b/package.json index 599e46d..1d06d57 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "it-buffer": "^0.1.1", "it-length-prefixed": "^3.0.0", "it-pair": "^1.0.0", - "it-pb-rpc": "^0.1.6", + "it-pb-rpc": "^0.1.8", "it-pipe": "^1.1.0", "libp2p-crypto": "^0.17.1", "peer-id": "^0.13.5", diff --git a/yarn.lock b/yarn.lock index b1af7f0..70a9223 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1637,6 +1637,15 @@ bl@^4.0.0: dependencies: readable-stream "^3.4.0" +bl@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/bl/-/bl-4.0.2.tgz#52b71e9088515d0606d9dd9cc7aa48dc1f98e73a" + integrity sha512-j4OH8f6Qg2bGuWfRiltT2HYGx0e1QcBTrK9KAHNMwMZdQnDZFk0ZSYIpADjYCB3U12nicC5tVJwSIhwOWjb4RQ== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + blakejs@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.1.0.tgz#69df92ef953aa88ca51a32df6ab1c54a155fc7a5" @@ -1839,6 +1848,14 @@ buffer@^5.2.1, buffer@^5.4.3: base64-js "^1.0.2" ieee754 "^1.1.4" +buffer@^5.5.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.5.0.tgz#9c3caa3d623c33dd1c7ef584b89b88bf9c9bc1ce" + integrity sha512-9FTEDjLjwoAkEwyMGDjYJQN2gfRgOKBKRfiglhvibGbpeeU/pQn1bJxQqm32OD/AIeEuHxU9roxXxg34Byp/Ww== + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + bufio@~1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/bufio/-/bufio-1.0.6.tgz#e0eb6d70b2efcc997b6f8872173540967f90fa4d" @@ -3290,7 +3307,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -3369,7 +3386,7 @@ is-buffer@^1.1.5: resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== -is-buffer@~2.0.3: +is-buffer@^2.0.4, is-buffer@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.4.tgz#3e572f23c8411a5cfd9557c849e3665e0b290623" integrity sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A== @@ -3594,6 +3611,15 @@ it-length-prefixed@^3.0.0: buffer "^5.4.3" varint "^5.0.0" +it-length-prefixed@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/it-length-prefixed/-/it-length-prefixed-3.0.1.tgz#8c4d829576f941eb17b94bc83ed0c3c78bf0a05a" + integrity sha512-QnfnFkpklDhWpyPQ2al6pdqmsQbwZAUpa7066e8S9RQxXo0s4o21ceqCG0n/0wdmvgfRSYsW5g2dYgchqtLZYw== + dependencies: + bl "^4.0.2" + buffer "^5.5.0" + varint "^5.0.0" + it-pair@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/it-pair/-/it-pair-1.0.0.tgz#b1add81f49af16a10b2939dbef7b1974fae87d6a" @@ -3601,13 +3627,14 @@ it-pair@^1.0.0: dependencies: get-iterator "^1.0.2" -it-pb-rpc@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/it-pb-rpc/-/it-pb-rpc-0.1.6.tgz#f6dba92f44a6ce5df8fc71ca08aefe472b552a02" - integrity sha512-4srJH8iK976tlAEv0wBnud78hxjQsDvrl71lPG7zquNiaqZ3409oqzukC05f6z0UeYwi4M80Bm+gHy/642lJ/g== +it-pb-rpc@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/it-pb-rpc/-/it-pb-rpc-0.1.8.tgz#eed8ffdcba2a322a20a45c9db9ec5644499ccaf2" + integrity sha512-YePzUUonithCTIdVKcOeQEn5mpipCg7ZoWsq7jfjXXtAS6gm6R7KzCe6YBV97i6bljU8hGllTG67FiGfweKNKg== dependencies: + is-buffer "^2.0.4" it-handshake "^1.0.1" - it-length-prefixed "^3.0.0" + it-length-prefixed "^3.0.1" it-pipe@^1.1.0: version "1.1.0" From 6f2f49dddaa491670d7d65f31483041998b56614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Mon, 6 Apr 2020 10:59:31 +0200 Subject: [PATCH 2/3] update deps --- package.json | 2 +- yarn.lock | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 1d06d57..a8e1f34 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ }, "dependencies": { "@types/bn.js": "^4.11.6", - "bcrypto": "5.0.3", + "bcrypto": "5.1.0", "bn.js": "^5.0.0", "buffer": "^5.4.3", "debug": "^4.1.1", diff --git a/yarn.lock b/yarn.lock index 70a9223..ea8033e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1585,14 +1585,13 @@ base@^0.11.1: mixin-deep "^1.2.0" pascalcase "^0.1.1" -bcrypto@5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/bcrypto/-/bcrypto-5.0.3.tgz#086b62d660e545c34ddf980fd4a5fc0001d4708b" - integrity sha512-wqATA9cenjBLDjih4Pey6H47G4RIpDzX4V3gvPTxsQkvVovYoERKyHR/BuUuxYllw5Xpi7novrogb/F/wN7xjA== +bcrypto@5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/bcrypto/-/bcrypto-5.1.0.tgz#1ca3d0b1bd1ffe6bb18cfcf2a7d7fc19423b68e6" + integrity sha512-WEs5g7WHdEdLLcsvhE7Z1AXv0G+hb+bJhSUYM7samFNrH051XhcFVWxAbAZDmIU1HWjpjhmQ+HqBar7UC/qrzQ== dependencies: bufio "~1.0.6" loady "~0.0.1" - nan "^2.14.0" better-assert@~1.0.0: version "1.0.2" From f38f120cc370c5957b775a7e1230e424d3c5cb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Mon, 6 Apr 2020 12:42:08 +0200 Subject: [PATCH 3/3] Release 1.0.0 --- CHANGELOG.md | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1896349..a9c8287 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [1.0.0] + +Stable version, interobable with go-libp2p-noise! ### Bugfixes - fix types to be compatible with rest of libp2p typescript projects diff --git a/package.json b/package.json index a8e1f34..3da9113 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "libp2p-noise", - "version": "1.0.0-rc.9", + "version": "1.0.0", "main": "dist/index.js", "types": "dist/index.d.ts", "module": "lib/index.js",