Skip to content

Commit

Permalink
chore(release): update monorepo packages versions (#852)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Dec 31, 2021
1 parent 17c0325 commit b2bc861
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 84 deletions.
7 changes: 0 additions & 7 deletions .changeset/blue-countries-whisper.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cool-mice-float.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/many-cooks-walk.md

This file was deleted.

62 changes: 0 additions & 62 deletions .changeset/strange-kangaroos-change.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/graphql-live-query-patch-json-diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"dependencies": {
"@n1ru4l/json-patch-plus": "^0.1.4",
"@n1ru4l/graphql-live-query-patch": "^0.6.0"
"@n1ru4l/graphql-live-query-patch": "^0.6.1"
},
"devDependencies": {
"graphql": "16.0.0-experimental-stream-defer.5",
Expand Down
8 changes: 8 additions & 0 deletions packages/graphql-live-query-patch-json-patch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @n1ru4l/graphql-live-query-patch-json-patch

## 0.6.1

### Patch Changes

- 727e806: unpin `fast-json-patch` dependency.
- Updated dependencies [727e806]
- @n1ru4l/graphql-live-query-patch@0.6.1

## 0.6.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql-live-query-patch-json-patch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@n1ru4l/graphql-live-query-patch-json-patch",
"version": "0.6.0",
"version": "0.6.1",
"author": "n1ru4l <laurinquast@googlemail.com>",
"license": "MIT",
"repository": {
Expand All @@ -19,7 +19,7 @@
"real-time"
],
"dependencies": {
"@n1ru4l/graphql-live-query-patch": "^0.6.0",
"@n1ru4l/graphql-live-query-patch": "^0.6.1",
"fast-json-patch": "^3.1.0"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/graphql-live-query-patch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @n1ru4l/graphql-live-query-patch

## 0.6.1

### Patch Changes

- 727e806: fix memory leak cause by AsyncIterables not being disposed properly.

## 0.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-live-query-patch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@n1ru4l/graphql-live-query-patch",
"version": "0.6.0",
"version": "0.6.1",
"author": "n1ru4l <laurinquast@googlemail.com>",
"license": "MIT",
"repository": {
Expand Down
67 changes: 67 additions & 0 deletions packages/in-memory-live-query-store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,72 @@
# @n1ru4l/in-memory-live-query-store

## 0.9.0

### Minor Changes

- 727e806: The source returned from execute is now lazy and will only start emitting values once it is consumed. This prevents memory leaks.

**BREAKING**: If the wrapped `execute` function returns a stream (e.g. because you forgot to add the `NoLiveMixedWithDeferStreamRule` validation rule) it causes the `execute` function to reject instead of publishing a ExecutionResult error payload. This change has been made in order to treat the error as unexpected and not leak any implementation details to the clients.

- aee5d58: Allow setting custom invalidation indices.

Until now doing granular or very specific index invalidations wasn't possible. Thus invalidation might not have been efficient enough, as either too many or too few live query operation "subscriptions" got invalidated.

The new `indexBy` configuration option for the `InMemoryLiveQueryStore`, allows configuring specific indices suitable for the consumed GraphQL schema, resulting more granular and efficient invalidations.

**Invalidate by single field with arguments:**

```ts
const store = new InMemoryLiveQueryStore({
includeIdentifierExtension: true,
indexBy: [
{
field: "Query.posts",
args: ["needle"]
}
]
});

const execute = store.makeExecute(executeImplementation);

const document = parse(/* GraphQL */ `
query @live {
posts(needle: "skrrrrt") {
id
title
}
}
`);

const executionResult = execute({ document, schema });

let result = await executionResult.next();
expect(result.value).toEqual({
data: {
posts: []
},
extensions: {
liveResourceIdentifier: ["Query.posts", 'Query.posts(needle:"skrrrrt")']
},
isLive: true
});
```

**Invalidation by single field with specific arguments:**

```ts
const store = new InMemoryLiveQueryStore({
includeIdentifierExtension: true,
indexBy: [
{
field: "Query.posts",
// index will only be used if the needle argument value equals "brrrrt"
args: [["needle", "brrrrt"]]
}
]
});
```

## 0.8.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/in-memory-live-query-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@n1ru4l/in-memory-live-query-store",
"version": "0.8.0",
"version": "0.9.0",
"author": "n1ru4l <laurinquast@googlemail.com>",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit b2bc861

Please sign in to comment.