protocolbuffers / protobuf-javascript

BSD 3-Clause "New" or "Revised" License
330 stars 66 forks source link

Add root level export for wrappers_pb #197

Closed steven-supersolid closed 3 months ago

steven-supersolid commented 3 months ago

To access the wrappers objects a client must do the following:

const jspbWrappers = require('google-protobuf/google/protobuf/wrappers_pb');

This requires knowledge of the internal structure of the package. Instead a client should be able to do something like

const jspbWrappers = require('google-protobuf').jspbWrappers

Due to our limited support resources, feature requests will generally not be accepted, except for those referring to build or tooling integration.

dibenede commented 3 months ago

Sorry for the delay. I think I understand where this sentiment is coming from, but I think the path to package approach is typical across protobuf languages.