70 Commits

Author SHA1 Message Date
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
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
Kevin Decker
d871d97278
test: rebuild tests for current runtime (#1476)
* Rebuild gentest sources

* Incorporate gentests into make

Also reorder tasks so type linting is done against newly generated code vs. old.

* fix: add newline to package.json

Co-authored-by: Alexander Fenster <fenster@google.com>
Co-authored-by: Alexander Fenster <github@fenster.name>
2020-09-18 16:01:05 -07:00
Benjamin E. Coe
15ed8a0fbe
fix(docs): update CHANGELOG to match format of release-please (#1376) 2020-03-11 12:17:58 -07: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
812b38ddab Other: Move global handling to util, see #995 2018-04-06 13:34:13 +02:00
dcodeIO
db2dd49f6a Fixed: Prevent invalid JSDoc names when generating service methods, see #870 2017-11-27 17:45:05 +01:00
dcodeIO
b8a5b126fa Other: Regenerated dist files and fixed linting issues 2017-11-24 18:50:18 +01:00
dcodeIO
bda1bc6917 Other: Fix travis build 2017-11-24 15:55:15 +01:00
dcodeIO
cf36097305 Generate more verbose JSDoc comments for ES6 support, fixes #820 2017-06-09 11:03:56 +02:00
dcodeIO
17c2797592 New: Upgrade to codegen 2 2017-04-23 14:51:58 +02:00
dcodeIO
a18e6db9f0 Other: Minor compression ratio tuning 2017-04-20 14:30:23 +02:00
dcodeIO
2dcae25c99 CLI: Several improvements to tsd-jsdoc emitted comments 2017-04-17 23:44:59 +02:00
dcodeIO
1fc911cef0 Other: Fixed obvious issues with ext/descriptor, does not throw anymore when throwing descriptor.proto itself at it, see #757 2017-04-13 02:40:01 +02:00
dcodeIO
708552bb84 Other: Added infrastructure for TypeScript support of extensions 2017-04-12 19:03:14 +02:00
dcodeIO
59e4478890 Other: Stripped down static bench code to what's necessary 2017-04-07 19:48:10 +02:00
dcodeIO
f88dad0982 Other: Revamped benchmark, now also covers Google's JS implementation 2017-04-07 19:38:18 +02:00
dcodeIO
2c2d4002d6 Other: Manually merged gentests improvements, fixes #733 2017-03-31 14:50:24 +02:00
dcodeIO
5041fad9de Other: Additional restructuring for moving configuration files out of the root folder 2017-03-12 22:12:09 +01:00
dcodeIO
95cd64ee51 Other: Moved a few things out of the root folder 2017-03-11 05:04:44 +01:00
dcodeIO
364e7d457e Other: Exclude dist/ from codeclimate checks 2017-03-07 23:04:37 +01:00
dcodeIO
4b21e00adc Other: Moved cli deps placeholder creation to post install script [ci skip] 2017-03-02 20:12:26 +01:00
dcodeIO
2ddb76b6e9 CLI: Added an experimental --sparse option to limit pbjs output to actually referenced types within main files; Other: Added a few more common google types from google/api, see #433 2017-02-04 05:36:57 +01:00
dcodeIO
276a594771 New: Initial attempt on a backwards compatible fetch implementation with binary support, see #661 2017-01-27 01:31:45 +01:00
dcodeIO
b6cf228a82 Fixed: Use custom prelude in order to exclude any module loader code from source (for webpack), see #658 2017-01-26 17:41:08 +01:00
dcodeIO
27b16351f3 Breaking: Reflected and statically generated services use common utility, now work exactly the same 2017-01-21 19:41:55 +01:00
dcodeIO
7299929b37 Other: Statically generated services actually inherit from rpc.Service 2017-01-21 00:54:58 +01:00
dcodeIO
4bff9c356e Breaking: Cleaned up library distributions, now is full / light / minimal with proper browserify support for each 2017-01-20 02:50:52 +01:00
dcodeIO
cbaaae99b4 Other: Added version scheme warning to everything CLI so that we don't need this overly explicit in README 2017-01-18 15:12:02 +01:00
dcodeIO
168e448dba Other: Bundler provides useful stuff to uglify and a global var without extra bloat 2017-01-17 05:51:19 +01:00
dcodeIO
3325e86930 Other: Properly removed builtins from bundle; Other: UMD wrapper detects more enviroments + loader test cases 2017-01-17 02:11:39 +01:00
dcodeIO
b5daa27240 Other: Cleaned up test case data and removed unused files 2017-01-16 18:54:09 +01:00
dcodeIO
340d6aa82a New: Now also parses comments, sets them on reflected objects and re-uses them when generating static code, see #640 2017-01-12 23:37:08 +01:00
dcodeIO
3946e0fefe Breaking: Initial upgrade of converters to real generated functions, see #620 2017-01-12 05:10:14 +01:00
dcodeIO
65637ffce2 CLI: Do not wrap main definition as a module and export directly instead; CLI: Generate prettier definitions with --no-comments 2016-12-31 01:08:14 +01:00
dcodeIO
a7d23240a2 New: Attempt to improve TypeScript support by using explicit exports 2016-12-30 16:33:11 +01:00
dcodeIO
39a2ea361c CLI: Removed now unnecessary comment lines in generated static code 2016-12-27 23:53:24 +01:00
dcodeIO
442471363f New: Added a noparse build for completeness 2016-12-23 11:39:11 +01:00
dcodeIO
bfee1cc362 New: Now compresses .gz files using zopfli to make them useful beyond being just a reference 2016-12-21 12:52:42 +01:00
dcodeIO
c59647a754 Docs: Fixed an issue with the changelog generator skipping some commits; Other: Updated / added additional LICENSE files where appropriate 2016-12-20 23:06:23 +01:00
dcodeIO
0b0de2458a Breaking: Relicensed the library and its components to BSD-3-Clause to match the official implementation (again); New: Replaced the ieee754 implementation for old browsers with a faster, use-case specific one + simple test case 2016-12-20 22:40:47 +01:00
dcodeIO
333f022181 Integrated changelog into build process, now also has 'npm run make' for everything, see #574 2016-12-20 14:20:06 +01:00
dcodeIO
d5812571f3 Docs: Initial changelog generator, see #574 2016-12-20 13:14:51 +01:00
dcodeIO
ab3e236a96 Docs: Added static/JSON module interchangeability to README; Minor optimizations through providing type-hints; Performance: Reverted shortened switch statements in verifier; Compatibility: Enums can't be map key types 2016-12-20 01:38:22 +01:00
dcodeIO
99ad9cc087 Added .create to statically generated types and uppercase nested elements to reflection namespaces, see #576; Also added Namespace#getEnum for completeness, see #576; Made pbjs use loadSync for deterministic outputs, see #573 2016-12-19 23:51:45 +01:00
dcodeIO
7fac9d6a39 Properly check Buffer.prototype.set with node v4 2016-12-19 00:34:34 +01:00
dcodeIO
7939a4bd8b Updated README and bundler according to dynamic require calls 2016-12-18 18:55:07 +01:00
dcodeIO
4531d75cdd Can't just inline longNeq but can be simplified 2016-12-16 14:15:22 +01:00
dcodeIO
fb74223b72 Simplified programmatic CLI api; Other minor optimizations 2016-12-15 17:51:24 +01:00