0.1.5 • Published 2 years ago

@functionless/nodejs-closure-serializer v0.1.5

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

Closure Serializer

This is a fork of the Pulumi Closure Serializer. @pulumi/pulumi.

Motivation

Functionless allows developers to write cloud applications (using aws-cdk) with pure typescript.

const sfn = new StepFunction(stack, "sfn", () => {
  /* something in the state machine */
  return "result";
});

new Function(stack, "func", async () => {
  return sfn();
});

More on Function in the doc: https://functionless.org/docs/concepts/function

Pulumi's closure serializer helped us bootstrap this experience by doing the heavy lifting of runtime data serialization.

However, Pulumi's serializer had a few short comings:

  1. Coupled to the whole @pulumi/pulumi npm package
  2. Limited extensibility
  3. Makes use of Pulumi resources (Logging and Secrets) in the serializer

Changes from Pulumi

  • Bug Fix: Symbol Support
  • Removed: Pulumi Secret support
  • Removed: Pulumi Logging support
  • Change: serialize function support replacement of runtime data to be serialized on top of avoiding serialization
  • Change: Do not serialize functions and constructors that are not invoked
  • Change: Anonymous functions can be injected at runtime through the serialize callback.
  • Change: Allow for TypeScript TransformerFactory functions to be applied to serialized closures.
  • Change: Replace the with syntax with simple let statements.

Forked from

https://github.com/pulumi/pulumi/releases/tag/v3.33.2

0.1.4

2 years ago

0.1.3

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.0.3

3 years ago

0.1.1

2 years ago

0.0.8

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago