Apollo-client: [apollo-client] 2.6.9 different bundle

Created on 13 May 2020  ·  6Comments  ·  Source: apollographql/apollo-client

Hi all,
I wanted to report that with version 2.6.9 a different bundle structure was released on npm.

This results in a breaking change when internal APIs are used.

| bundle 2.6.9 | bundle 2.6.8 |
| ------------- | ------------- |
immagine | immagine

✔ confirmed 🐞 bug 🚨 high-priority 🛠 tooling

All 6 comments

@hwillson Any idea what might be up with this?

I'm experiencing the same breaking change with this update, following here for more info.

Interesting - it looks like the apollo-client prep script (./scripts/deploy.sh) didn't fire as part of the Lerna deploy process. I'll dig in - thanks!

@hwillson I think the cause is the absence of the property "private": true,
in the package.json of apollo-client

This avoids running the lerna publish and allows the deploy.sh script to run correctly

Ahhh great catch @morrys - that makes sense! We removed it in https://github.com/apollographql/apollo-client/commit/b73b380655d8118f91596e15e11361781a834a5e#diff-ba5107ed2a3d01d496471a867baf8207 to fix Github's "Used by" counter. Fix coming momentarily - thanks!

This should now be fixed in [email protected] (and I'm really glad we've moved away from AC 2.x's build/deploy approach in @apollo/client).

Was this page helpful?
0 / 5 - 0 ratings