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

added Stream.fromEventListener #2513

Merged
merged 14 commits into from
Apr 17, 2024

Conversation

jessekelly881
Copy link
Contributor

@jessekelly881 jessekelly881 commented Apr 14, 2024

Added a helper to convert EventTarget.addEventListener to a stream and added Platform specific implementations.

export const isOnline = Stream.merge(
	fromEventListenerWindow("online").pipe(Stream.map(() => true)),
	fromEventListenerWindow("offline").pipe(Stream.map(() => false))
);

Copy link

changeset-bot bot commented Apr 14, 2024

🦋 Changeset detected

Latest commit: 586ec66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
effect Minor
@effect/platform-browser Major
@effect/cli Major
@effect/experimental Major
@effect/opentelemetry Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/platform Major
@effect/printer-ansi Major
@effect/printer Major
@effect/rpc-http Major
@effect/rpc Major
@effect/schema Major
@effect/typeclass Major
@effect/vitest Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Co-authored-by: Tim <hello@timsmart.co>
packages/effect/src/Stream.ts Outdated Show resolved Hide resolved
@github-actions github-actions bot changed the base branch from main to next-minor April 16, 2024 21:34
@jessekelly881
Copy link
Contributor Author

Updated! :)

@tim-smart
Copy link
Member

You can run pnpm codegen to fix the build issue.

@tim-smart tim-smart merged commit d36e044 into Effect-TS:next-minor Apr 17, 2024
12 checks passed
@github-actions github-actions bot mentioned this pull request Apr 17, 2024
github-actions bot pushed a commit that referenced this pull request Apr 17, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 21, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 21, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 22, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 22, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 24, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 24, 2024
Co-authored-by: Tim <hello@timsmart.co>
patroza pushed a commit to patroza/effect that referenced this pull request Apr 24, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 25, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 25, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 25, 2024
Co-authored-by: Tim <hello@timsmart.co>
patroza pushed a commit to patroza/effect that referenced this pull request Apr 25, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 25, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 25, 2024
Co-authored-by: Tim <hello@timsmart.co>
tim-smart added a commit that referenced this pull request Apr 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 26, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 27, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 27, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 27, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 28, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 28, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
github-actions bot pushed a commit that referenced this pull request Apr 29, 2024
Co-authored-by: Tim <hello@timsmart.co>
tim-smart added a commit that referenced this pull request Apr 30, 2024
Co-authored-by: Tim <hello@timsmart.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants