Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: protobufjs/protobuf.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 69623a91c1e4a99d5210b5295a9e5b39d9517554
Choose a base ref
...
head repository: protobufjs/protobuf.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b130dfd4f06b642d4b7c3ccc9f3f9fb6a6e6ed0d
Choose a head ref
Loading
Showing with 23,147 additions and 20,290 deletions.
  1. +2 −0 .gitattributes
  2. 0 .github/publish.yml
  3. +2 −0 .github/release-please.yml
  4. +43 −0 .github/workflows/release.yaml
  5. +62 −0 .github/workflows/test.yml
  6. +5 −0 .gitignore
  7. +0 −10 .travis.yml
  8. +0 −4 .vscode/settings.json
  9. +1,013 −921 CHANGELOG.md
  10. +36 −10 README.md
  11. +11 −11 bench/data/static_pbjs.js
  12. +163 −0 cli/README.md
  13. +71 −59 cli/lib/tsd-jsdoc/publish.js
  14. +0 −20 cli/package-lock.json
  15. +8 −1 cli/package.json
  16. +12 −12 cli/package.standalone.json
  17. +5 −4 cli/pbjs.js
  18. +12 −3 cli/targets/static.js
  19. +0 −5 config/istanbul.json
  20. +6,202 −6,032 dist/light/protobuf.js
  21. +1 −1 dist/light/protobuf.js.map
  22. +3 −3 dist/light/protobuf.min.js
  23. +1 −1 dist/light/protobuf.min.js.map
  24. +1,907 −1,877 dist/minimal/protobuf.js
  25. +1 −1 dist/minimal/protobuf.js.map
  26. +3 −3 dist/minimal/protobuf.min.js
  27. +1 −1 dist/minimal/protobuf.min.js.map
  28. +7,834 −7,596 dist/protobuf.js
  29. +1 −1 dist/protobuf.js.map
  30. +3 −3 dist/protobuf.min.js
  31. +1 −1 dist/protobuf.min.js.map
  32. +2 −2 ext/descriptor/README.md
  33. +2 −2 ext/descriptor/index.js
  34. +55 −10 index.d.ts
  35. +1 −1 lib/aspromise/package.json
  36. +1 −1 lib/base64/package.json
  37. +1 −1 lib/eventemitter/package.json
  38. +1 −1 lib/fetch/package.json
  39. +2 −2 lib/float/package.json
  40. +1 −1 lib/inquire/package.json
  41. +9 −2 lib/path/index.js
  42. +1 −1 lib/path/package.json
  43. +16 −0 lib/path/tests/index.js
  44. +1 −1 lib/pool/package.json
  45. +18 −27 lib/utf8/index.js
  46. +1 −1 lib/utf8/package.json
  47. +207 −0 lib/utf8/tests/data/surrogate_pair_bug.txt
  48. +6 −0 lib/utf8/tests/index.js
  49. +3,775 −3,212 package-lock.json
  50. +41 −41 package.json
  51. +18 −0 renovate.json
  52. +6 −6 scripts/changelog.js
  53. +1 −1 scripts/gentests.js
  54. +37 −15 src/decoder.js
  55. +3 −3 src/encoder.js
  56. +3 −0 src/field.js
  57. +2 −2 src/index-minimal.js
  58. +12 −3 src/method.js
  59. +3 −2 src/namespace.js
  60. +43 −0 src/object.js
  61. +82 −20 src/parse.js
  62. +17 −11 src/reader.js
  63. +11 −4 src/reader_buffer.js
  64. +23 −11 src/root.js
  65. +15 −9 src/tokenize.js
  66. +34 −0 src/util.js
  67. +19 −12 src/util/minimal.js
  68. +23 −4 src/wrappers.js
  69. +16 −10 src/writer.js
  70. +27 −23 src/writer_buffer.js
  71. +12 −0 tests/api_object.js
  72. +7 −0 tests/api_tokenize.js
  73. +29 −0 tests/api_util.js
  74. +76 −0 tests/cli.js
  75. +89 −0 tests/comp_bytes.js
  76. +2 −2 tests/comp_google_protobuf_any.js
  77. +44 −0 tests/comp_maps.js
  78. +26 −0 tests/comp_optional.js
  79. +160 −0 tests/comp_options-parse.js
  80. +7 −3 tests/comp_typescript.js
  81. +13 −0 tests/data/cli/test.proto
  82. +31 −0 tests/data/comments-alternate-parse.proto
  83. +4 −4 tests/data/comments.js
  84. +25 −11 tests/data/convert.js
  85. +11 −11 tests/data/mapbox/vector_tile.js
  86. +140 −0 tests/data/options_test.proto
  87. +90 −34 tests/data/package.js
  88. +2 −2 tests/data/rpc-es6.js
  89. +2 −2 tests/data/rpc-reserved.js
  90. +2 −2 tests/data/rpc.js
  91. +348 −194 tests/data/test.js
  92. +3 −2 tests/data/test.proto
  93. +2 −0 tests/data/uncommon.proto
  94. +25 −0 tests/docs_comments.js
  95. +47 −1 tests/docs_comments_alternate_parse.js
  96. +11 −0 tests/node/api_load-sync.js
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin/* text eol=lf
dist/* binary
Empty file added .github/publish.yml
Empty file.
2 changes: 2 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
releaseType: node
handleGHRelease: true
43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
branches:
- 6.x
name: release-please
jobs:
release-please-pr:
runs-on: ubuntu-latest
steps:
- id: release-pr
uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: protobufjs
command: release-pr
default-branch: 6.x
release-please-release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: tag-release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: protobufjs
command: github-release
default-branch: 6.x
- uses: actions/checkout@v2
if: ${{ steps.tag-release.outputs.release_created }}
- uses: actions/setup-node@v1
if: ${{ steps.tag-release.outputs.release_created }}
with:
node-version: 14
registry-url: 'https://wombat-dressing-room.appspot.com/'
- name: publish
if: ${{ steps.tag-release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
npm install
npm publish
62 changes: 62 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: "Test"
on:
push:
branches:
- master
pull_request:
types: [assigned, opened, synchronize, reopened, labeled]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12"
- name: "Install dependencies"
run: npm install
- name: "Lint sources"
run: npm run lint:sources -- --max-warnings 0
- name: "Lint types"
run: npm run lint:types
build:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12"
- name: "Install dependencies"
run: npm install
- name: "Build distribution files"
run: npm run build
test:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
node_version: ["4", "4.3.2", "6", "8", "10", "12"]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: "Install dependencies"
run: npm install
- name: "Test sources"
run: npm run test:sources
- name: "Test types"
run: npm run test:types
bench:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12"
- name: "Install dependencies"
run: npm install
- name: "Run benchmark"
run: npm run bench
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
.nyc_output
.vscode
*.log
npm-debug.*
node_modules/
cli/node_modules/
cli/package-lock.json
docs/
coverage/
sandbox/
.nyc_output

10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .vscode/settings.json

This file was deleted.

Loading