Skip to content

Commit

Permalink
Merge branch 'main' into fix-scheduleQueueConsumption
Browse files Browse the repository at this point in the history
  • Loading branch information
zlrlo authored Jan 5, 2023
2 parents 8b4d3b9 + caba6c1 commit 34a0f6a
Show file tree
Hide file tree
Showing 8 changed files with 437 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-cameras-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@apollo/client': patch
---

Ensure the `onError` callback is called when the `errorPolicy` is set to "all" and partial data is returned.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ jobs:
uses: changesets/action@v1
with:
version: npm run changeset-version
publish: npm run changeset-publish
publish: npm run changeset-publish -- --tag next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Echo values from changesets step
if: steps.changesets.outcome == 'success'
run: echo "${{steps.changesets.outcome}} v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"

- name: Send a Slack notification on publish
if: steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
id: slack
Expand All @@ -56,6 +60,6 @@ jobs:
# a comma-delimited list of channel IDs
channel-id: 'C01PS0CB41G'
# For posting a simple plain text message
slack-message: "Published @apollo/client v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"
slack-message: "Published v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion config/bundlesize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { join } from "path";
import { gzipSync } from "zlib";
import bytes from "bytes";

const gzipBundleByteLengthLimit = bytes("32KB");
const gzipBundleByteLengthLimit = bytes("32.03KB");
const minFile = join("dist", "apollo-client.min.cjs");
const minPath = join(__dirname, "..", minFile);
const gzipByteLen = gzipSync(readFileSync(minPath)).byteLength;
Expand Down
4 changes: 4 additions & 0 deletions src/__tests__/__snapshots__/exports.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ Array [
"mockObservableLink",
"mockSingleLink",
"subscribeAndCount",
"tick",
"wait",
"withErrorSpy",
"withLogSpy",
"withWarningSpy",
Expand All @@ -335,6 +337,8 @@ Array [
"mockObservableLink",
"mockSingleLink",
"subscribeAndCount",
"tick",
"wait",
"withErrorSpy",
"withLogSpy",
"withWarningSpy",
Expand Down
Loading

0 comments on commit 34a0f6a

Please sign in to comment.