
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
github.com/blndgs/model
Reusing data types, domain model or Shared Kernel
in DDD parlance.
This uses Protobuf definitions and holds the equivalent code for both
Golang and Typescript that can be used in userland code.
If you don’t have buf installed, follow the installation guide from buf.build.
buf generate
All models are currently defined in the asset.proto
file. It is a relatively
small model.
If adding lots of models, might make sense to split into a new file.
The below steps are needed to successfully update and distribute the models:
.proto
file.buf lint
buf format -w
.buf generate
buf.gen.yaml
to include the task.package.json
On every PR and Push, Github actions runs multiple tasks, one of which runs
buf generate
on the CI runner and checks if there is a diff between the generated
code you are submitting and what it generates. If there is a diff, the CI run fails.
This ensures bad code isn't mistakenly committed and we can safely distribute the changes to everyone
For the test run the following command:
go test ./...
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.