Skip to content

Commit 595cd79

Browse files
committed
cms@93db6c4
Finish 4.11.0
1 parent 5821959 commit 595cd79

File tree

9 files changed

+177
-28
lines changed

9 files changed

+177
-28
lines changed

docs/.artifacts/cms/4.x/addresses.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
| [trashed](#trashed) | Narrows the query results to only addresses that have been soft-deleted.
3636
| [uid](#uid) | Narrows the query results based on the addresses’ UIDs.
3737
| [with](#with) | Causes the query to return matching addresses eager-loaded with related elements.
38+
| [withCustomFields](#withcustomfields) | Sets whether custom fields should be factored into the query.
3839

3940

4041
<!-- textlint-enable -->
@@ -757,5 +758,18 @@ $addresses = \craft\elements\Address::find()
757758
:::
758759

759760

761+
#### `withCustomFields`
762+
763+
Sets whether custom fields should be factored into the query.
764+
765+
766+
767+
768+
769+
770+
771+
772+
773+
760774

761775
<!-- END PARAMS -->

docs/.artifacts/cms/4.x/assets.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
| [volumeId](#volumeid) | Narrows the query results based on the volumes the assets belong to, per the volumes’ IDs.
5050
| [width](#width) | Narrows the query results based on the assets’ image widths.
5151
| [with](#with) | Causes the query to return matching assets eager-loaded with related elements.
52+
| [withCustomFields](#withcustomfields) | Sets whether custom fields should be factored into the query.
5253
| [withTransforms](#withtransforms) | Causes the query to return matching assets eager-loaded with image transform indexes.
5354

5455

@@ -1233,6 +1234,19 @@ $assets = \craft\elements\Asset::find()
12331234
:::
12341235

12351236

1237+
#### `withCustomFields`
1238+
1239+
Sets whether custom fields should be factored into the query.
1240+
1241+
1242+
1243+
1244+
1245+
1246+
1247+
1248+
1249+
12361250
#### `withTransforms`
12371251

12381252
Causes the query to return matching assets eager-loaded with image transform indexes.

docs/.artifacts/cms/4.x/categories.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
| [unique](#unique) | Determines whether only elements with unique IDs should be returned by the query.
5353
| [uri](#uri) | Narrows the query results based on the categories’ URIs.
5454
| [with](#with) | Causes the query to return matching categories eager-loaded with related elements.
55+
| [withCustomFields](#withcustomfields) | Sets whether custom fields should be factored into the query.
5556

5657

5758
<!-- textlint-enable -->
@@ -1366,5 +1367,18 @@ $categories = \craft\elements\Category::find()
13661367
:::
13671368

13681369

1370+
#### `withCustomFields`
1371+
1372+
Sets whether custom fields should be factored into the query.
1373+
1374+
1375+
1376+
1377+
1378+
1379+
1380+
1381+
1382+
13691383

13701384
<!-- END PARAMS -->

docs/.artifacts/cms/4.x/config-general.md

Lines changed: 65 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Whether users should be allowed to create similarly-named tags.
108108
->allowSimilarTags(true)
109109
```
110110
```shell Environment Override
111-
CRAFT_ALLOW_SIMILAR_TAGS=1
111+
CRAFT_ALLOW_SIMILAR_TAGS=true
112112
```
113113
:::
114114

@@ -704,7 +704,7 @@ This should be set to `true` for development and staging environments.
704704
->disallowRobots(true)
705705
```
706706
```shell Environment Override
707-
CRAFT_DISALLOW_ROBOTS=1
707+
CRAFT_DISALLOW_ROBOTS=true
708708
```
709709
:::
710710

@@ -889,7 +889,7 @@ panel is located on a different domain than your front end.
889889
->headlessMode(true)
890890
```
891891
```shell Environment Override
892-
CRAFT_HEADLESS_MODE=1
892+
CRAFT_HEADLESS_MODE=true
893893
```
894894
:::
895895

@@ -1046,7 +1046,7 @@ This only affects the JavaScript auto-generated slugs. Non-ASCII characters can
10461046
->limitAutoSlugsToAscii(true)
10471047
```
10481048
```shell Environment Override
1049-
CRAFT_LIMIT_AUTO_SLUGS_TO_ASCII=1
1049+
CRAFT_LIMIT_AUTO_SLUGS_TO_ASCII=true
10501050
```
10511051
:::
10521052
@@ -1158,9 +1158,12 @@ Defined by
11581158
Since
11591159
: 3.6.14
11601160
1161+
Deprecated
1162+
: in 4.11.0. [[\craft\filters\Headers]] should be used instead.
1163+
11611164
</div>
11621165
1163-
The `Permissions-Policy` header that should be sent for web responses.
1166+
The `Permissions-Policy` header that should be sent for site responses.
11641167
11651168
::: code
11661169
```php Static Config
@@ -1422,7 +1425,7 @@ Whether a `Content-Length` header should be sent with responses.
14221425
->sendContentLengthHeader(true)
14231426
```
14241427
```shell Environment Override
1425-
CRAFT_SEND_CONTENT_LENGTH_HEADER=1
1428+
CRAFT_SEND_CONTENT_LENGTH_HEADER=true
14261429
```
14271430
:::
14281431

@@ -1570,7 +1573,7 @@ Whether translated messages should be wrapped in special characters to help find
15701573
->translationDebugOutput(true)
15711574
```
15721575
```shell Environment Override
1573-
CRAFT_TRANSLATION_DEBUG_OUTPUT=1
1576+
CRAFT_TRANSLATION_DEBUG_OUTPUT=true
15741577
```
15751578
:::
15761579

@@ -1604,7 +1607,7 @@ php craft utils/update-usernames
16041607
->useEmailAsUsername(true)
16051608
```
16061609
```shell Environment Override
1607-
CRAFT_USE_EMAIL_AS_USERNAME=1
1610+
CRAFT_USE_EMAIL_AS_USERNAME=true
16081611
```
16091612
:::
16101613

@@ -1682,7 +1685,7 @@ You can customize the behavior of iFrame Resizer via the <config4:previewIframeR
16821685
->useIframeResizer(true)
16831686
```
16841687
```shell Environment Override
1685-
CRAFT_USE_IFRAME_RESIZER=1
1688+
CRAFT_USE_IFRAME_RESIZER=true
16861689
```
16871690
:::
16881691

@@ -1695,7 +1698,7 @@ CRAFT_USE_IFRAME_RESIZER=1
16951698
<div class="compact">
16961699

16971700
Allowed types
1698-
: [array](https://php.net/language.types.array)
1701+
: `array<string,string|null>`
16991702

17001703
Default value
17011704
: `[]`
@@ -2027,7 +2030,7 @@ Whether auto-generated URLs should have trailing slashes.
20272030
->addTrailingSlashesToUrls(true)
20282031
```
20292032
```shell Environment Override
2030-
CRAFT_ADD_TRAILING_SLASHES_TO_URLS=1
2033+
CRAFT_ADD_TRAILING_SLASHES_TO_URLS=true
20312034
```
20322035
:::
20332036

@@ -2055,7 +2058,7 @@ Whether uppercase letters should be allowed in slugs.
20552058
->allowUppercaseInSlug(true)
20562059
```
20572060
```shell Environment Override
2058-
CRAFT_ALLOW_UPPERCASE_IN_SLUG=1
2061+
CRAFT_ALLOW_UPPERCASE_IN_SLUG=true
20592062
```
20602063
:::
20612064

@@ -2270,7 +2273,7 @@ RewriteRule (.+) /index.php?p= [QSA,L]
22702273
->omitScriptNameInUrls(true)
22712274
```
22722275
```shell Environment Override
2273-
CRAFT_OMIT_SCRIPT_NAME_IN_URLS=1
2276+
CRAFT_OMIT_SCRIPT_NAME_IN_URLS=true
22742277
```
22752278
:::
22762279
@@ -2643,7 +2646,7 @@ This setting only takes effect if <config4:omitScriptNameInUrls> is set to `fals
26432646
->usePathInfo(true)
26442647
```
26452648
```shell Environment Override
2646-
CRAFT_USE_PATH_INFO=1
2649+
CRAFT_USE_PATH_INFO=true
26472650
```
26482651
:::
26492652
@@ -2675,7 +2678,7 @@ If set to `false`, Craft will always use `http`. If set to `true`, then, Craft w
26752678
->useSslOnTokenizedUrls(true)
26762679
```
26772680
```shell Environment Override
2678-
CRAFT_USE_SSL_ON_TOKENIZED_URLS=1
2681+
CRAFT_USE_SSL_ON_TOKENIZED_URLS=true
26792682
```
26802683
:::
26812684
@@ -2960,7 +2963,7 @@ Whether CSRF values should be injected via JavaScript for greater cache-ability.
29602963
->asyncCsrfInputs(true)
29612964
```
29622965
```shell Environment Override
2963-
CRAFT_ASYNC_CSRF_INPUTS=1
2966+
CRAFT_ASYNC_CSRF_INPUTS=true
29642967
```
29652968
:::
29662969
@@ -3185,7 +3188,7 @@ Whether front-end web requests should support basic HTTP authentication.
31853188
->enableBasicHttpAuth(true)
31863189
```
31873190
```shell Environment Override
3188-
CRAFT_ENABLE_BASIC_HTTP_AUTH=1
3191+
CRAFT_ENABLE_BASIC_HTTP_AUTH=true
31893192
```
31903193
:::
31913194
@@ -3335,7 +3338,7 @@ log in but allow for username/email enumeration based on the response.
33353338
->preventUserEnumeration(true)
33363339
```
33373340
```shell Environment Override
3338-
CRAFT_PREVENT_USER_ENUMERATION=1
3341+
CRAFT_PREVENT_USER_ENUMERATION=true
33393342
```
33403343
:::
33413344
@@ -3565,7 +3568,7 @@ Whether user IP addresses should be stored/logged by the system.
35653568
->storeUserIps(true)
35663569
```
35673570
```shell Environment Override
3568-
CRAFT_STORE_USER_IPS=1
3571+
CRAFT_STORE_USER_IPS=true
35693572
```
35703573
:::
35713574
@@ -3630,7 +3633,7 @@ is over `https://`. `true` will always set the flag, regardless of protocol and
36303633
->useSecureCookies(true)
36313634
```
36323635
```shell Environment Override
3633-
CRAFT_USE_SECURE_COOKIES=1
3636+
CRAFT_USE_SECURE_COOKIES=true
36343637
```
36353638
:::
36363639
@@ -3953,7 +3956,7 @@ Whether asset URLs should be revved so browsers don’t load cached versions whe
39533956
->revAssetUrls(true)
39543957
```
39553958
```shell Environment Override
3956-
CRAFT_REV_ASSET_URLS=1
3959+
CRAFT_REV_ASSET_URLS=true
39573960
```
39583961
:::
39593962
@@ -4046,7 +4049,7 @@ Whether image transforms should be generated before page load.
40464049
->generateTransformsBeforePageLoad(true)
40474050
```
40484051
```shell Environment Override
4049-
CRAFT_GENERATE_TRANSFORMS_BEFORE_PAGE_LOAD=1
4052+
CRAFT_GENERATE_TRANSFORMS_BEFORE_PAGE_LOAD=true
40504053
```
40514054
:::
40524055
@@ -4172,7 +4175,7 @@ ImageMagick is used.)
41724175
->optimizeImageFilesize(false)
41734176
```
41744177
```shell Environment Override
4175-
CRAFT_OPTIMIZE_IMAGE_FILESIZE=1
4178+
CRAFT_OPTIMIZE_IMAGE_FILESIZE=false
41764179
```
41774180
:::
41784181
@@ -4206,7 +4209,7 @@ image color distortion. This will only have an effect if ImageMagick is in use.
42064209
->preserveCmykColorspace(true)
42074210
```
42084211
```shell Environment Override
4209-
CRAFT_PRESERVE_CMYK_COLORSPACE=1
4212+
CRAFT_PRESERVE_CMYK_COLORSPACE=true
42104213
```
42114214
:::
42124215
@@ -4238,7 +4241,7 @@ This will only have effect if ImageMagick is in use.
42384241
->preserveExifData(true)
42394242
```
42404243
```shell Environment Override
4241-
CRAFT_PRESERVE_EXIF_DATA=1
4244+
CRAFT_PRESERVE_EXIF_DATA=true
42424245
```
42434246
:::
42444247
@@ -4302,7 +4305,7 @@ This will only work if ImageMagick is installed, and <config4:imageDriver> is se
43024305
->rasterizeSvgThumbs(true)
43034306
```
43044307
```shell Environment Override
4305-
CRAFT_RASTERIZE_SVG_THUMBS=1
4308+
CRAFT_RASTERIZE_SVG_THUMBS=true
43064309
```
43074310
:::
43084311
@@ -4447,6 +4450,9 @@ Defined by
44474450
Since
44484451
: 3.5.0
44494452
4453+
Deprecated
4454+
: in 4.11.0. [[\craft\filters\Cors]] should be used instead.
4455+
44504456
</div>
44514457
44524458
The Ajax origins that should be allowed to access the GraphQL API, if enabled.
@@ -4492,7 +4498,7 @@ Whether the `transform` directive should be disabled for the GraphQL API.
44924498
->disableGraphqlTransformDirective(true)
44934499
```
44944500
```shell Environment Override
4495-
CRAFT_DISABLE_GRAPHQL_TRANSFORM_DIRECTIVE=1
4501+
CRAFT_DISABLE_GRAPHQL_TRANSFORM_DIRECTIVE=true
44964502
```
44974503
:::
44984504
@@ -4627,6 +4633,37 @@ CRAFT_GQL_TYPE_PREFIX=craft_
46274633
46284634
46294635
4636+
### `lazyGqlTypes`
4637+
4638+
<div class="compact">
4639+
4640+
Allowed types
4641+
: [boolean](https://php.net/language.types.boolean)
4642+
4643+
Default value
4644+
: `false`
4645+
4646+
Defined by
4647+
: [GeneralConfig::$lazyGqlTypes](craft4:craft\config\GeneralConfig::$lazyGqlTypes)
4648+
4649+
Since
4650+
: 4.11.0
4651+
4652+
</div>
4653+
4654+
Whether GraphQL types should be generated lazily.
4655+
4656+
::: code
4657+
```php Static Config
4658+
->lazyGqlTypes(true)
4659+
```
4660+
```shell Environment Override
4661+
CRAFT_LAZY_GQL_TYPES=true
4662+
```
4663+
:::
4664+
4665+
4666+
46304667
### `maxGraphqlBatchSize`
46314668
46324669
<div class="compact">
@@ -4807,7 +4844,7 @@ Whether dates returned by the GraphQL API should be set to the system time zone
48074844
->setGraphqlDatesToSystemTimeZone(true)
48084845
```
48094846
```shell Environment Override
4810-
CRAFT_SET_GRAPHQL_DATES_TO_SYSTEM_TIMEZONE=1
4847+
CRAFT_SET_GRAPHQL_DATES_TO_SYSTEM_TIMEZONE=true
48114848
```
48124849
:::
48134850

0 commit comments

Comments
 (0)