Martin Traverse
f2ed6e0021
Fix lint warnings
2024-07-25 11:47:27 +01:00
Martin Traverse
aa61793c1c
Only look up proto syntax once per type in the static generator
2024-07-24 19:18:48 +01:00
Martin Traverse
996e445f59
Explicit handling of proto3 syntax in the parser and static generator
2024-07-24 18:42:01 +01:00
Martin Traverse
479375556f
Fix options list in pbjs
2024-07-24 16:28:48 +01:00
Martin Traverse
2bd0b43444
New implementation that explicitly respects the optional keyword
2024-07-24 16:25:56 +01:00
Martin Traverse
94556f9f1b
Do not use null-defaults to decide type signature for pb3-optionals (this only sets the default of optional fields, it doesn't control whether a field is optional or not)
2024-07-24 11:53:33 +01:00
Martin Traverse
358d336439
Hide the fix for PB3 optional type declarations behind the flag --pb3-optional
2024-07-24 11:53:33 +01:00
Martin Traverse
b38a668f49
Fixes optional handling for class-level comments (JS) and interfaces (TS)
2024-07-24 11:53:33 +01:00
github-actions[bot]
4436cc748c
chore: release master ( #1925 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-21 17:03:30 -07:00
Alexander Fenster
f2a8620179
fix: possible infinite loop when parsing option ( #1923 )
2023-08-21 10:31:54 -07:00
github-actions[bot]
644d588c04
chore: release master ( #1865 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-02 13:15:45 -08:00
gitjuba
e42eea4868
fix(cli): fix relative path to Google pb files ( #1859 )
2023-02-02 13:14:35 -08:00
github-actions[bot]
0099ddccae
chore: release master ( #1852 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-24 11:48:28 -08:00
pluschen
32f2d6a68b
feat(cli): generate static files at the granularity of proto messages ( #1840 )
...
* feat: add message filter for cli
* feat: add test
* fix: update comment
* fix: update error message
* fix: remove test file
* fix: lint, jsdoc comments, return values
Co-authored-by: pluschen <pluschen@tencent.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2023-01-24 11:44:53 -08:00
renovate[bot]
57fe6f58bf
chore(deps): update dependency jsdoc to v4 ( #1833 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-24 10:50:14 -08:00
github-actions[bot]
6254efb1bd
chore: release master ( #1804 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-09-09 17:36:25 -07:00
Alexander Fenster
7c27b5ad5d
fix: add import long to the generated .d.ts ( #1802 )
...
* fix: add import long to the generated .d.ts
* fix: do not add import long to the main index.d.ts
2022-09-09 14:38:22 -07:00
github-actions[bot]
48457c4737
chore: release master ( #1772 )
...
* chore: release master
* chore: trigger CI
* chore: update lockfile and .d.ts
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2022-08-26 15:06:26 -07:00
James Bromwell
d87978b8eb
fix(types): update type deps ( #1776 )
...
* Update type deps
Remove duplicate `long` types
* Fix type tests
Co-authored-by: Alexander Fenster <fenster@google.com>
2022-08-17 12:04:05 -07:00
Simen Bekkhus
0f4af83e4e
fix: remove unused @types/long ( #1785 )
...
* fix: remove unused `@types/long`
* fix: typescript tests
Co-authored-by: Alexander Fenster <fenster@google.com>
2022-08-17 11:07:00 -07:00
renovate[bot]
8303a648bc
fix(deps): update dependency glob to v8 ( #1750 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-08 10:56:33 -07:00
renovate[bot]
c41ba50ecf
chore(deps): update dependency espree to v9 ( #1748 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-08 10:55:12 -07:00
github-actions[bot]
e8745f73aa
chore: release master ( #1771 )
...
* chore: release master
* chore: regenerate lockfile for cli
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2022-07-08 10:40:17 -07:00
Gergely Nagy
7558ef0f93
feat: add alt-comment CLI option ( #1692 )
2022-07-07 17:16:14 -07:00
Alexander Fenster
50370dd774
fix!: drop support for Node 4, 6, 8, 10 ( #1764 )
2022-07-07 15:57:52 -07:00
Kairlec
8aad1dd994
feat: allow message.getTypeUrl provide custom typeUrlPrefix ( #1762 )
...
* feat: allow message.getTypeUrl provide custom tyepUrlPrefix
* Update static.js
* test: added tests, regenerated test files
Co-authored-by: Alexander Fenster <fenster@google.com>
2022-07-07 14:10:58 -07:00
Madiyar
a1d60292ec
fix: proper relative path to protobufjs in cli ( #1753 )
...
According to https://docs.npmjs.com/cli/v8/configuring-npm/package-json#local-paths the local path should be `file:..` instead of `file://..`.
The later version copies whole top-level file-system in a macOS and with a recent version of npm (8.12.2) and results in a `MODULE_NOT_FOUND` error.
Co-authored-by: Alexander Fenster <fenster@google.com>
2022-07-06 18:27:19 -07:00
Benjamin E. Coe
64811d5878
feat: prepare initial publication of cli ( #1752 )
...
* feat: prepare initial publication of cli
* build: try to fix build
* test: try to make node4 ci work
* test: run all ci tasks at once
* fix: bring package.json @types/node back
Co-authored-by: Alexander Fenster <fenster@google.com>
2022-07-06 18:17:43 -07:00
Richard Gerrard
bac61b8c27
fix(deps): patch minimatch vulnerability ( #1704 )
...
* Patch minimatch vulnerability
If I follow this, glob packages minimatch. Minimatch released a fix, glob also has a newer build, picking this up should pick up that.
Fixes #1696
Fixes #1697
Fixes #1698
* chore: update lockfile
Co-authored-by: Alexander Fenster <fenster@google.com>
2022-05-19 18:24:56 -07:00
Taylor McIntyre
d13d5d5688
feat: add getTypeUrl method to generated code ( #1463 )
...
* Add getTypeUrl method to static-module generated code
* add tests for getTypeUrl method
2021-05-21 15:53:03 -07:00
Simon Lipp
6e713baf54
feat: add null-defaults option ( #1611 )
...
* feat: add null-defaults option
* fix: linting
Co-authored-by: Alexander Fenster <github@fenster.name>
Co-authored-by: Alexander Fenster <fenster@google.com>
2021-05-07 20:29:36 -07:00
Alexander Fenster
90afe4412d
fix: fromObject should not initialize oneof members ( #1597 )
...
* test: adding test for pbjs static code generation
* fix: fromObject should not initialize oneof members
2021-04-28 18:25:37 -07:00
Alexander Fenster
6c4d30716a
feat: proto3 optional support ( #1584 )
...
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
2021-04-15 10:56:00 -07:00
Matthew Douglass
d01394a146
feat: add --no-service option for pbjs static target ( #1577 )
...
This option skips generation of service clients.
Co-authored-by: Alexander Fenster <fenster@google.com>
2021-04-14 10:33:42 -07:00
Mike Ralphson
7f46dbeb53
fix: typo in pbjs help text ( #1552 )
2021-03-12 15:54:47 -08:00
Taylor McIntyre
da34f43ccd
feat!: move command line tool to a new package named protobufjs-cli ( #1234 )
...
* Get protobufjs-cli to a publishable state
* Fix eslint issues
* Fix pbts path
* Install cli package deps on CI 'build' job
* fix: get rid of require-protobufjs.js
* fix: lint
* fix: versions
* chore(deps): update package-lock.json
Co-authored-by: Stacey Sern <stacey@dropbox.com>
Co-authored-by: Gabriel Cangussu <gabrielcangussu@gmail.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2021-01-15 16:02:00 -08:00
翠 / green
9f33784350
fix: es6 export enum ( #1446 )
...
Co-authored-by: Alexander Fenster <fenster@google.com>
2020-07-17 15:59:03 -07:00
Alexander Fenster
8fe584bf00
build: rebuild bundle ( #1442 )
2020-07-13 16:05:35 -07:00
Simon Warta
6698d59243
Don't imply --wrap es6 from --es6
2020-06-18 11:13:31 +02:00
Daniel Wirtz
42f49b43f6
feat: update dependencies / general cleanup ( #1356 )
...
Co-authored-by: Alexander Fenster <fenster@google.com>
2020-04-17 15:53:50 +02:00
Florian Keller
8a858634f3
fix: Import Long types
2019-02-14 17:42:08 +01:00
dcodeIO
3001425b0d
Fixed: Persist recent index.d.ts changes in JSDoc
2018-07-19 02:34:09 +02:00
dcodeIO
2c5ef95818
CLI: Extend list of ignored ESLint rules for pbjs, fixes #1085
2018-07-17 22:28:03 +02:00
Vury Leo
8576b49ad3
CLI: Fix declared return type of pbjs/pbts callback ( #1025 )
2018-05-18 13:54:23 +02:00
Rob Moran
9fceaa6966
CLI: Added an option to pbts to allow custom imports ( #1038 )
2018-05-18 13:42:08 +02:00
dcodeIO
996b3fa0c5
Fix static codegen issues with uglifyjs3; New: Explicitly define service method names when generating static code, see #857
2018-05-18 10:58:00 +02:00
dcodeIO
1a522f793b
Other: Update dependencies
2018-05-16 13:01:51 +02:00
dcodeIO
a06317139b
Post-merge; Fix lint issues / pbts on windows
2018-04-30 21:48:27 +02:00
Kelly Campbell
65d113b007
CLI: Get node executable path from process.execPath ( #1018 )
2018-04-30 21:36:30 +02:00
dcodeIO
cc991a058b
CLI: Use correct safeProp in json-module target, see #956
2017-11-29 02:16:51 +01:00