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

fix: remove protobuf-ts and split code into two folders #162

Merged
merged 2 commits into from
May 12, 2023

Conversation

achingbrain
Copy link
Member

This module uses both protobuf-ts and protons for protobuf operations. To reduce the bundle size, just use protons for both.

Splits the two transports into private-to-private and private-to-public folders to better tell what code is used by what.

Module exports are unaffected so this is a non-breaking change.

This module uses both protobuf-ts and protons for protobuf operations.
To reduce the bundle size, just use protons for both.

Splits the two transports into `private-to-private` and `private-to-public`
folders to better tell what code is used by what.

Module exports are unaffected so this is a non-breaking change.
@achingbrain achingbrain requested a review from maschad May 11, 2023 16:59
@achingbrain
Copy link
Member Author

Before:

% npm run build -- -b

> @libp2p/webrtc@2.0.0 build
> aegir build -b

[18:02:24] tsc [started]
[18:02:28] tsc [completed]
[18:02:28] esbuild [started]
[18:02:28] → Use https://www.bundle-buddy.com/ to load "./dist/stats.json".
[18:02:28] → Check previous sizes in https://bundlephobia.com/result?p=@libp2p/webrtc@2.0.0
[18:02:28] → 122.29KB (▼-729B / 123KB)
[18:02:28] esbuild [completed]

After:

% npm run build -- -b                               

> @libp2p/webrtc@2.0.0 build
> aegir build -b

[18:04:00] tsc [started]
[18:04:05] tsc [completed]
[18:04:05] esbuild [started]
[18:04:05] → Use https://www.bundle-buddy.com/ to load "./dist/stats.json".
[18:04:05] → Check previous sizes in https://bundlephobia.com/result?p=@libp2p/webrtc@2.0.0
[18:04:05] → 109.72KB (▼-13.28KB / 123KB)
[18:04:05] esbuild [completed]

Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@achingbrain achingbrain merged commit 64723a7 into main May 12, 2023
@achingbrain achingbrain deleted the fix/remove-protobuf-js-and-split-code branch May 12, 2023 06:39
github-actions bot pushed a commit that referenced this pull request May 12, 2023
## [2.0.1](v2.0.0...v2.0.1) (2023-05-12)

### Bug Fixes

* remove protobuf-ts and split code into two folders ([#162](#162)) ([64723a7](64723a7))
@achingbrain achingbrain mentioned this pull request May 18, 2023
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants