Skip to main content

How can I validate my step inputs and outputs?

· 5 min read
Jeremy Scott
Co-founder

Version 3 of opscotch introduces a small but powerful "preprocessor" called doc for JavaScript processors. The doc functions allow you to add documentation and add programatic declarations of what inputs and outputs your step expects and returns. It's a way to validate and perform type checking, and also declares your expectations to callers.

See the doc documentation here

How can I upload binary files?

· One min read
Jeremy Scott
Co-founder

Prior to version 3.1.0 of opscotch, you could only receive text content from the HTTP trigger i.e. json or text like. Version 3.1.0 now lets workflows receive raw binary uploads. The new context.getStream() call gives you direct access to the byte stream.

Byte manipulation in workflows

· 3 min read
Jeremy Scott
Co-founder

Prior to version 3.1.0 of opscotch, payload manipulation was limited to text - you could manipulate that at the byte level in JavaScript but it was very cumbersome and inefficient.

Version 3.1.0 of opscotch adds a ByteContext plus a ByteReader for low-level byte manipulation inside workflows. This is for engineers who already think in buffers, encodings, and compression.

New Licensing mechanism in 3.1.0

· 7 min read
Jeremy Scott
Co-founder

Licensing just leveled up in 3.1.0. The old embedded “you-either-have-one-or-you-dont” license stays supported, but you no longer need to bake a license into every package. Instead, licenses become hierarchical, divisible, and issued out (perhap locally) on demand—perfect for organizations, managed service providers, resellers, and customer-managed setups.

How can I process multipart HTTP uploads in workflows?

· 4 min read
Jeremy Scott
Co-founder

Version 3.1.0 of opscotch adds support for HTTP multipart uploads, letting you receive text/JSON and binary content in the same request. This unlocks use cases like “send me the metadata and the file in one hit,” without forcing you to pick one or chain requests. With saftey in mind - this is disabled by default.

New packaging mechanism in 3.1.0

· 6 min read
Jeremy Scott
Co-founder

The new packaging system in 3.1.0 is here—and it finally makes multi-recipient, authenticated packages straightforward. You can ship a single package to many deployments, require multiple signatures (author, endorsers), and verify it all at package deploy time. The previous packaging flow still works if you need it.