Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.0.2 #1

Open
novacbn opened this issue Dec 3, 2020 · 0 comments
Open

v0.0.2 #1

novacbn opened this issue Dec 3, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@novacbn
Copy link
Owner

novacbn commented Dec 3, 2020

FEATURES

  • Support for pipelines to purely validate syntax without evaluating code. Returning only the validated code.
  • Support for pipelines to return warnings on successful evaluations / validations
  • Support for Javascript-based pipelines to properly handle module.exports.default exports with standard CommonJS semantics

CHANGES

  • Update PIPELINE_RESULT_TYPES
    • Rename .success to .evaluated
    • Add .validated to members
  • Update IPipelineOptions
    • Add mode: IPipelineModes to members with values of MODE_EVALUATE / MODE_VALIDATE
  • Rename IPipelineSuccess to IPipelineEvaluated
  • Add IPipelineValidated with code: string member for validation only pipelines
  • Add new replacement IPipelineSuccess for inheritance, with only warnings: string[] / type: PIPELINE_RESULT_TYPES.evaluated | PIPELINE_RESULT_TYPES.validated members
  • Update evaluate_code to detect module.exports.default, if available, perform module.exports = module.exports.default and spread module.exports members onto object
@novacbn novacbn added the enhancement New feature or request label Dec 3, 2020
@novacbn novacbn self-assigned this Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant