question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use zen-observable as ESM

See original GitHub issue

The last version of zen-observable has an ESM export: esm.js.

You can also check it at unpkg: https://unpkg.com/browse/zen-observable@0.8.15/

It would be great that Apollo Client uses that instead of the CJS export (index.js).

That way, zen-observable works directly in the browser.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

10reactions
benjamncommented, Jan 25, 2021

@abdonrd Thanks for following through and opening that PR! Since there’s been no response, I’m moving ahead with a wrapping strategy, using the package name zen-observable-ts: #7615. If your PR ever gets merged (🤞 ), we can go back to using zen-observable directly.

These changes should be released in Apollo Client v3.4 (the next minor version).

4reactions
abdonrdcommented, Feb 17, 2021

@benjamn yes, looking forward to the release!

I’m very glad to read that there will be a solution for fast-json-stable-stringify! 👏🏻

this little package called react”. Yeah, little package 😂 Personally I think the best option would be to remove React from @apollo/client (that works for any) and have something like @apollo/client/react with React. But yes, for now I use @apollo/client/core.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use the zen-observable-ts function in zen ... - Snyk
To help you get started, we've selected a few zen-observable-ts examples, based on popular ways it is used in public projects.
Read more >
Zen-observable-ts - npm.io
zen-observable -ts. Thin wrapper around zen-observable and @types/zen-observable , to support ESM exports as well as CommonJS exports, with TypeScript types ...
Read more >
zen-observable-ts examples - CodeSandbox
Learn how to use zen-observable-ts by viewing and forking zen-observable-ts example apps on CodeSandbox.
Read more >
zen-observable CDN by jsDelivr - A CDN for npm and GitHub
zen-observable CDN Files ... No files selected. Select the files you want to use using the switches on the left. ... Sadly, this...
Read more >
zen-observable-ts@1.1.0 - jsDocs.io
Documentation for npm package zen-observable-ts@1.1.0 - jsDocs.io. ... and @types/zen-observable, to support ESM exports as well as CommonJS exports ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found