Skip to content

Commit

Permalink
Version Packages (#7820)
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
1 parent 2842ab0 commit f2ca4d1
Show file tree
Hide file tree
Showing 122 changed files with 511 additions and 318 deletions.
5 changes: 0 additions & 5 deletions .changeset/binary-eats-grass.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/binary-eats-wilderberries.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/errors-now-equal.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/famous-chefs-pretend.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/few-glasses-boil.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-json-null.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forty-glasses-compare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/giant-avocados-swim.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/go-go-graphql.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/great-sloths-bake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lazy-experts-shop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lazy-times-progress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/less-carry-on.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/less-next-things.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/less-system-pressure.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/many-bulldogs-scream.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mean-olives-lick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/moody-jobs-beam.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nine-pugs-draw.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/odd-files-battle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/poor-dogs-exercise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rude-worms-tickle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-dolphins-scream.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/slow-games-greet.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/take-your-baggage.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/two-fishes-guess.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/views-do-change.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-cooks-trade.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/witty-bees-pull.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @keystone-6/website

## 0.0.6

### Patch Changes

- Updated dependencies []:
- @keystone-6/fields-document@5.0.0

## 0.0.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keystone-6/website",
"version": "0.0.5",
"version": "0.0.6",
"private": true,
"license": "MIT",
"scripts": {
Expand All @@ -21,7 +21,7 @@
"@emotion/react": "^11.7.1",
"@emotion/server": "11.10.0",
"@emotion/weak-memoize": "^0.3.0",
"@keystone-6/fields-document": "^4.1.0",
"@keystone-6/fields-document": "^5.0.0",
"@keystone-ui/core": "^5.0.1",
"@keystone-ui/icons": "^6.0.1",
"@markdoc/markdoc": "^0.1.5",
Expand Down
32 changes: 0 additions & 32 deletions docs/pages/docs/config/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ export default config({
graphql: { /* ... */ },
db: { /* ... */ },
description: '...',
{% if $nextRelease %}
isSingleton: false,
{% /if %}
defaultIsFilterable: false,
defaultIsOrderable: false,
}),
Expand All @@ -35,9 +33,7 @@ This document will explain the configuration options which can be used with the

Options:

{% if $nextRelease %}
- `isSingleton`: This flag, when `true` changes the list to default to only supporting a single row. See [Singletons](#is-singleton) for details.
{% /if %}
- `defaultIsFilterable`: This value sets the default value to use for `isFilterable` for fields on this list.
- `defaultIsOrderable`: This value sets the default value to use for `isOrderable` for fields on this list.

Expand Down Expand Up @@ -171,16 +167,13 @@ Options:
- `description` (default: `undefined`): Sets the description of the associated GraphQL type in the generated GraphQL API documentation.
Overrides the list-level `description` config option.
- `plural`: (default: Pluralised list key, e.g. `'Users'`): Overrides the name used in multiple mutations and queries (e.g. `users()`, `updateUsers()`, etc).
{% if $nextRelease %}
- `maxTake` (default: `undefined`): Allows you to specify the maximum `take` number for query operations on this list in the GraphQL API.
{% /if %}
- `cacheHint` (default: `undefined`): Allows you to specify the [dynamic cache control hints](https://www.apollographql.com/docs/apollo-server/performance/caching/#in-your-resolvers-dynamic) used for queries to this list.
- `omit` (default: `undefined`): Allows you to configure which parts of the CRUD API are autogenerated for your GraphQL API.
This option accepts either `true`, or an array of the values `query`, `create`, `update`, or `delete`.
If you specify `true` then the entire list, including its output type, will be omitted from the GraphQL API.
If you provide an array of `query`, `create`, `update`, or `delete` options, the corresponding operations will be omitted from the GraphQL API.

{% if $nextRelease %}
```typescript
import { CacheScope } from 'apollo-cache-control';
import { config, list } from '@keystone-6/core';
Expand All @@ -203,29 +196,6 @@ export default config({
/* ... */
});
```
{% else /%}
```typescript
import { CacheScope } from 'apollo-cache-control';
import { config, list } from '@keystone-6/core';

export default config({
lists: {
SomeListName: list({
graphql: {
description: '...',
itemQueryName: '...',
listQueryName: '...',
cacheHint: { maxAge: 60, scope: CacheScope.Private },
omit: ['query', 'create', 'update', 'delete'],
},
/* ... */
}),
/* ... */
},
/* ... */
});
```
{% /if %}

## db

Expand Down Expand Up @@ -261,7 +231,6 @@ export default config({
The `description` option defines a string that will be used as a description in the Admin UI and GraphQL API docs.
This option can be individually overridden by the `graphql.description` or `ui.description` options.

{% if $nextRelease %}
## isSingleton

The `isSingleton` flag changes a list to only have support for a single row with an `id` of `1`.
Expand Down Expand Up @@ -297,7 +266,6 @@ The following additional constraints should be kept in mind when lists that have
- With `id: 1` injected into respective filters, the `id` unique constraint will fail for create operations if an item already exists
- You cannot have relationships (`ref: 'Settings'`), if `Settings` is a list with `isSingleton` set
- You can however, have relationship fields in the `Settings` list, like normal
{% /if %}

## Related resources

Expand Down
6 changes: 0 additions & 6 deletions docs/pages/docs/guides/schema-extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,9 @@ export default config({
});
```

{% if $nextRelease %}
{% hint kind="tip" %}
Note - Before version `3.0.0` of `@keystone-6/core`, `@graphql-tools/schema` was exported from `@keystone/core` as `graphQLSchemaExtension` this was removed in favor of using the tool directly if required
{% /hint %}
{% else /%}
{% hint kind="tip" %}
Note - `@graphql-tools/schema` is currently exported from `@keystone/core` as `graphQLSchemaExtension` this will be removed in the next major version of `@keystone-6/core` in favor of using the tool directly if required
{% /hint %}
{% /if %}

A full example project using `@graphql-tools/schema` can be found in [examples/extend-graphql-schema-graphql-tools](https://github.com/keystonejs/keystone/tree/main/examples/extend-graphql-schema-graphql-tools) on the Keystone GitHub repo.

Expand Down
24 changes: 0 additions & 24 deletions docs/pages/docs/guides/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,18 @@ In this guide we'll show you how to use `@keystone-6/core/testing` and [Jest](ht

In order to run tests using `@keystone-6/core/testing`, we recommend adding the following script to your `package.json` file.

{% if $nextRelease %}

```json
"scripts": {
"test": "jest"
}
```

{% else /%}

```json
"scripts": {
"test": "jest --runInBand --testTimeout=60000"
}
```

{% /if %}

This will let you run your tests with the command

```shell
yarn test
```

{% if $nextRelease %}

{% else /%}

{% hint kind="warn" %}
Expand Down Expand Up @@ -77,15 +63,11 @@ The third is an [`express.Express`](https://expressjs.com/) value named `app` wh
The test runner will drop all data in your database on each run. Make sure you do not run your tests against a system with live data.
{% /hint %}

{% /if %}

## Writing tests

In general you will want to run tests which check the behaviour of any custom code that you write as part of your Keystone system.
This includes things like access control, hooks, virtual fields, and GraphQL API extensions.

{% if $nextRelease %}

```typescript
import { getContext } from '@keystone-6/core/context';
import { resetDatabase } from '@keystone-6/core/testing';
Expand All @@ -111,8 +93,6 @@ test('Your unit test', async () => {
We're setting the database url as `file:./test-${process.env.JEST_WORKER_ID}.db` so that our tests can use one database per Jest worker thread and run each test suite in parallel
{% /hint %}

{% /if %}

### Context API

The [context API](../context/overview) lets you easily manipulate data in your system.
Expand Down Expand Up @@ -190,8 +170,6 @@ expect(errors![0].message).toEqual(
);
```

{% if $nextRelease %}

{% else /%}

### graphQLRequest API
Expand Down Expand Up @@ -288,8 +266,6 @@ describe('Example tests using test environment', () => {
});
```

{% /if %}

## Related resources

{% related-content %}
Expand Down
7 changes: 7 additions & 0 deletions examples/assets-local/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @keystone-6/example-assets-local

## 0.0.5

### Patch Changes

- Updated dependencies [[`6497e1c7e`](https://github.com/keystonejs/keystone/commit/6497e1c7e314afeae231d0dac0b03eaf145413ed), [`c75340fc4`](https://github.com/keystonejs/keystone/commit/c75340fc44757044049712fd6910010ac2029390), [`c740ba630`](https://github.com/keystonejs/keystone/commit/c740ba630cafbf1417dab0358b901cbfb850df49), [`6c60565c9`](https://github.com/keystonejs/keystone/commit/6c60565c940a9e27b8bb9b3e3e61260f22ee1e1a), [`7ae3bb706`](https://github.com/keystonejs/keystone/commit/7ae3bb7064f54d5d94e55de07339336faff57a0f), [`138a015ba`](https://github.com/keystonejs/keystone/commit/138a015ba030c46f483a773c032f6748dc71ca66), [`d7cfada36`](https://github.com/keystonejs/keystone/commit/d7cfada36baf0a9b94576bc004a747ddd2fa127c), [`309786f7b`](https://github.com/keystonejs/keystone/commit/309786f7bfe9d32a25726b156a20be79123dc236), [`0530069b6`](https://github.com/keystonejs/keystone/commit/0530069b6d3a459f41a77a6b014cdb2178649eef), [`c06c5d60c`](https://github.com/keystonejs/keystone/commit/c06c5d60c8a4d0f05eb3b1e84f97b5611f07005a), [`524431be6`](https://github.com/keystonejs/keystone/commit/524431be6795421b3b1bf6e42276cc81979e5255), [`25b5bb605`](https://github.com/keystonejs/keystone/commit/25b5bb6057a9dfba50bf7e3bbb454a24ff30820b), [`2a7bc608b`](https://github.com/keystonejs/keystone/commit/2a7bc608b9d9a4c1296dadc6ae9d81d834c435cb), [`411663ae7`](https://github.com/keystonejs/keystone/commit/411663ae7f7cf172d3ea429a90e2e28a3ff63cfb), [`ed3d97874`](https://github.com/keystonejs/keystone/commit/ed3d97874e93470cccac67ac2e43dbd268e7e929), [`2317d0bf5`](https://github.com/keystonejs/keystone/commit/2317d0bf5f9c9ce17a5d5106a12e408586e0cef6), [`824dafa2e`](https://github.com/keystonejs/keystone/commit/824dafa2ecb9a28561879d8e38ba5cc0753d6e42), [`c3a3789c6`](https://github.com/keystonejs/keystone/commit/c3a3789c6e4a1761a24cd02904b7549a62113363), [`81f33eed3`](https://github.com/keystonejs/keystone/commit/81f33eed3570057be9bc8df1f29de12886dfceea), [`267d8c1f3`](https://github.com/keystonejs/keystone/commit/267d8c1f39ed2209d4d497f6041d85f5ebb29dbc), [`a8a5f1fae`](https://github.com/keystonejs/keystone/commit/a8a5f1faed31e63e948323bed8e6edf193f54866), [`51ab28615`](https://github.com/keystonejs/keystone/commit/51ab28615a706012150bedde914b8f9cdf71c9d6), [`c06c5d60c`](https://github.com/keystonejs/keystone/commit/c06c5d60c8a4d0f05eb3b1e84f97b5611f07005a), [`25b5bb605`](https://github.com/keystonejs/keystone/commit/25b5bb6057a9dfba50bf7e3bbb454a24ff30820b), [`a8a5f1fae`](https://github.com/keystonejs/keystone/commit/a8a5f1faed31e63e948323bed8e6edf193f54866), [`c2275621d`](https://github.com/keystonejs/keystone/commit/c2275621d7e96576acd59de7636095c432b3570e), [`6c60565c9`](https://github.com/keystonejs/keystone/commit/6c60565c940a9e27b8bb9b3e3e61260f22ee1e1a), [`494cdefb1`](https://github.com/keystonejs/keystone/commit/494cdefb1d08a6f3518fbc4946cdf0ffcb1aa6dd)]:
- @keystone-6/core@3.0.0

## 0.0.4

### Patch Changes
Expand Down
Loading

1 comment on commit f2ca4d1

@vercel
Copy link

@vercel vercel bot commented on f2ca4d1 Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.