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

Provide a v1-like stateless API in v2 #1130

Merged
merged 11 commits into from
Dec 20, 2023
Merged

Provide a v1-like stateless API in v2 #1130

merged 11 commits into from
Dec 20, 2023

Conversation

ericcornelissen
Copy link
Owner

@ericcornelissen ericcornelissen commented Aug 19, 2023

Relates to #963

Summary

Add a new importable module that offers an interface akin to the v1 interface for use cases where initializing a class (to reduce duplicate work) doesn't make sense, e.g. when only a single value needs to be escaped per execution.

@ericcornelissen ericcornelissen added the enhancement New feature or request label Aug 19, 2023
@github-actions github-actions bot added the meta Relates to the project or repository itself label Aug 19, 2023
Base automatically changed from initialize-v2 to main September 7, 2023 13:33
@ericcornelissen ericcornelissen changed the title Offer a "oneshot" module that doesn't require initializing a class Provide a v1-like stateless API in v2 Dec 17, 2023
@github-actions github-actions bot added the test Relates to testing label Dec 17, 2023
Currently entirely skipped because there's no previous version to test
against.
@ericcornelissen ericcornelissen marked this pull request as ready for review December 17, 2023 16:49
@ericcornelissen ericcornelissen enabled auto-merge (squash) December 20, 2023 20:32
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (88af241) 100.00% compared to head (7139375) 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##              main     #1130    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           16        17     +1     
  Lines         1507      1627   +120     
==========================================
+ Hits          1507      1627   +120     
Flag Coverage Δ
e2e-MacOS 91.01% <ø> (ø)
e2e-Ubuntu 91.01% <ø> (ø)
integration-MacOS 99.59% <100.00%> (+0.04%) ⬆️
integration-Ubuntu 99.18% <100.00%> (+0.08%) ⬆️
integration-Windows 98.96% <100.00%> (+0.13%) ⬆️
unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
stateless.js 100.00% <100.00%> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Relates to ci/cd enhancement New feature or request meta Relates to the project or repository itself test Relates to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant