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

1.0 #36

Merged
merged 64 commits into from
Dec 12, 2023
Merged

1.0 #36

merged 64 commits into from
Dec 12, 2023

Conversation

lxsmnsyc
Copy link
Owner

@lxsmnsyc lxsmnsyc commented Dec 5, 2023

Changes

  • Introduce createStream.
    • This function provides a universal streaming primitive that users can use. ReadableStream isn't a JS standard and so there was no counterpart to Promise when it comes to streaming data, so I had to introduce a minimal streaming primitive that is both portable and serializable.
  • Create seroval-plugins
    • This package is dedicated for authoring plugins.
  • Move the following Web API support to seroval-plugins/web
    • Blob
    • CustomEvent
    • DOMException
    • Event
    • File
    • FormData
    • Headers
    • ReadableStream
    • Request
    • Response
    • URLSearchParams
    • URL
  • Deprecate some feature flags. The following features can no longer be disabled:
    • Set
    • Map
    • Promise
    • BigInt
    • TypedArray
    • Symbol
    • WebAPI
  • Plugin parsing is now on a higher priority, which would allow users to customize serialization for things like plain objects.
  • Promise and AsyncIterable is now supported in sync mode, but will only generate a non-resolving instance.
  • Add extends option to Plugins API. This allows the plugins to require other plugins in case the feature is required (e.g. Request relies on both Headers and ReadableStream)

Fixes

  • Fix RegExp serialization
  • Fix string deserialization
  • Fix plugin tag deserialization check
  • Fix treeshaking for top-level variables

@lxsmnsyc lxsmnsyc marked this pull request as draft December 5, 2023 08:39
@lxsmnsyc lxsmnsyc changed the base branch from main to next December 6, 2023 11:52
@lxsmnsyc lxsmnsyc marked this pull request as ready for review December 12, 2023 03:24
@lxsmnsyc lxsmnsyc merged commit 393b2c1 into next Dec 12, 2023
1 check passed
@lxsmnsyc lxsmnsyc deleted the feat-stream branch December 12, 2023 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant