Skip to content

Commit 469450b

Browse files
committed
Run npm run since (but strip off -beta3)
1 parent 4f1b902 commit 469450b

11 files changed

+31
-31
lines changed

plugins/optimization-detective/class-od-html-tag-processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ final class OD_HTML_Tag_Processor extends WP_HTML_Tag_Processor {
239239
*
240240
* @inheritDoc
241241
* @since 0.4.0
242-
* @since n.e.x.t Passing a $query is now allowed. In the 1.0.0 release, this will default to skipping tag closers.
242+
* @since 1.0.0 Passing a $query is now allowed. In the 1.0.0 release, this will default to skipping tag closers.
243243
*
244244
* @param array{tag_name?: string|null, match_offset?: int|null, class_name?: string|null, tag_closers?: string|null}|null $query Query.
245245
* @return bool Whether a tag was matched.

plugins/optimization-detective/class-od-link-collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function ( $image_candidate ) {
323323
/**
324324
* Encodes a URL for serving in an HTTP response header.
325325
*
326-
* @since n.e.x.t
326+
* @since 1.0.0
327327
*
328328
* @param string $url URL to percent encode.
329329
* @return string Percent-encoded URL.

plugins/optimization-detective/class-od-template-optimization-context.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Optimization Detective: OD_Template_Optimization_Context class
44
*
55
* @package optimization-detective
6-
* @since n.e.x.t
6+
* @since 1.0.0
77
*/
88

99
// @codeCoverageIgnoreStart
@@ -15,7 +15,7 @@
1515
/**
1616
* Context for optimizing a template.
1717
*
18-
* @since n.e.x.t
18+
* @since 1.0.0
1919
*
2020
* @property-read OD_URL_Metric_Group_Collection $url_metric_group_collection URL Metric group collection.
2121
* @property-read positive-int|null $url_metrics_id ID for the od_url_metrics post which provided the URL Metrics in the collection.
@@ -28,7 +28,7 @@ final class OD_Template_Optimization_Context {
2828
/**
2929
* URL Metric group collection.
3030
*
31-
* @since n.e.x.t
31+
* @since 1.0.0
3232
* @var OD_URL_Metric_Group_Collection
3333
*/
3434
private $url_metric_group_collection;
@@ -38,39 +38,39 @@ final class OD_Template_Optimization_Context {
3838
*
3939
* May be null if no post has been created yet.
4040
*
41-
* @since n.e.x.t
41+
* @since 1.0.0
4242
* @var positive-int|null
4343
*/
4444
private $url_metrics_id;
4545

4646
/**
4747
* Normalized query vars.
4848
*
49-
* @since n.e.x.t
49+
* @since 1.0.0
5050
* @var array<string, mixed>
5151
*/
5252
private $normalized_query_vars;
5353

5454
/**
5555
* Slug for the od_url_metrics post.
5656
*
57-
* @since n.e.x.t
57+
* @since 1.0.0
5858
* @var non-empty-string
5959
*/
6060
private $url_metrics_slug;
6161

6262
/**
6363
* Link collection.
6464
*
65-
* @since n.e.x.t
65+
* @since 1.0.0
6666
* @var OD_Link_Collection
6767
*/
6868
private $link_collection;
6969

7070
/**
7171
* Constructor.
7272
*
73-
* @since n.e.x.t
73+
* @since 1.0.0
7474
* @access private
7575
*
7676
* @param OD_URL_Metric_Group_Collection $url_metric_group_collection URL Metric group collection.
@@ -90,7 +90,7 @@ public function __construct( OD_URL_Metric_Group_Collection $url_metric_group_co
9090
/**
9191
* Gets a property.
9292
*
93-
* @since n.e.x.t
93+
* @since 1.0.0
9494
*
9595
* @param string $name Property name.
9696
* @return mixed Property value.

plugins/optimization-detective/deprecated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @package optimization-detective
66
*
7-
* @since n.e.x.t
7+
* @since 1.0.0
88
*/
99

1010
// @codeCoverageIgnoreStart

plugins/optimization-detective/detection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static function ( OD_URL_Metric_Group $group ): array {
163163
/**
164164
* Registers the REST API endpoint for storing URL Metrics.
165165
*
166-
* @since n.e.x.t
166+
* @since 1.0.0
167167
* @access private
168168
*/
169169
function od_register_rest_url_metric_store_endpoint(): void {
@@ -184,7 +184,7 @@ function od_register_rest_url_metric_store_endpoint(): void {
184184
* This is intended to flush any page cache for the URL after the new URL Metric was submitted so that the optimizations
185185
* which depend on that URL Metric can start to take effect.
186186
*
187-
* @since n.e.x.t
187+
* @since 1.0.0
188188
*
189189
* @param positive-int $cache_purge_post_id Cache purge post ID.
190190
*/

plugins/optimization-detective/optimization.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function od_optimize_template_output_buffer( string $buffer ): string {
290290
*
291291
* This is before any of the registered tag visitors have been invoked.
292292
*
293-
* @since n.e.x.t
293+
* @since 1.0.0
294294
*
295295
* @param OD_Template_Optimization_Context $template_optimization_context Template optimization context.
296296
*/
@@ -361,7 +361,7 @@ function od_optimize_template_output_buffer( string $buffer ): string {
361361
*
362362
* This is after all the registered tag visitors have been invoked.
363363
*
364-
* @since n.e.x.t
364+
* @since 1.0.0
365365
*
366366
* @param OD_Template_Optimization_Context $template_optimization_context Template optimization context.
367367
*/

plugins/optimization-detective/storage/class-od-rest-url-metrics-store-endpoint.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
/**
1616
* OD_REST_URL_Metrics_Store_Endpoint class
1717
*
18-
* @since n.e.x.t
18+
* @since 1.0.0
1919
*/
2020
final class OD_REST_URL_Metrics_Store_Endpoint {
2121

2222
/**
2323
* Namespace for the REST API endpoint.
2424
*
25-
* @since n.e.x.t
25+
* @since 1.0.0
2626
* @var string
2727
*/
2828
const ROUTE_NAMESPACE = 'optimization-detective/v1';
@@ -34,7 +34,7 @@ final class OD_REST_URL_Metrics_Store_Endpoint {
3434
* that does not strictly follow the standard usage. Namely, submitting a POST request to this endpoint will either
3535
* create a new `od_url_metrics` post, or it will update an existing post if one already exists for the provided slug.
3636
*
37-
* @since n.e.x.t
37+
* @since 1.0.0
3838
* @link https://google.aip.dev/136
3939
* @var string
4040
*/
@@ -43,7 +43,7 @@ final class OD_REST_URL_Metrics_Store_Endpoint {
4343
/**
4444
* Gets the arguments for registering the endpoint.
4545
*
46-
* @since n.e.x.t
46+
* @since 1.0.0
4747
* @access private
4848
*
4949
* @return array{
@@ -107,7 +107,7 @@ public function get_registration_args(): array {
107107
/**
108108
* Checks if a given request has access to store URL Metrics.
109109
*
110-
* @since n.e.x.t
110+
* @since 1.0.0
111111
* @access private
112112
*
113113
* @return true|WP_Error True if the request has permission, WP_Error object otherwise.
@@ -132,7 +132,7 @@ public function store_permissions_check() {
132132
* not account for the URL port (although there is a to-do comment committed in core to address this). Additionally,
133133
* the `is_allowed_http_origin()` function in core for some reason returns a string rather than a boolean.
134134
*
135-
* @since n.e.x.t
135+
* @since 1.0.0
136136
* @see is_allowed_http_origin()
137137
* @access private
138138
*
@@ -148,7 +148,7 @@ protected static function is_allowed_http_origin( string $origin ): bool {
148148
/**
149149
* Handles the REST API request to store a URL Metric.
150150
*
151-
* @since n.e.x.t
151+
* @since 1.0.0
152152
* @access private
153153
*
154154
* @phpstan-param WP_REST_Request<array<string, mixed>> $request
@@ -311,7 +311,7 @@ public function handle_rest_request( WP_REST_Request $request ) {
311311
/**
312312
* Decompresses the REST API request body for the URL Metrics endpoint.
313313
*
314-
* @since n.e.x.t
314+
* @since 1.0.0
315315
* @access private
316316
*
317317
* @phpstan-param WP_REST_Request<array<string, mixed>> $request

plugins/optimization-detective/storage/class-od-url-metrics-post-type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static function ( $url_metric_data ) use ( $trigger_error ) {
204204
*
205205
* This method updates an existing URL Metrics post or creates a new one if it doesn't exist.
206206
*
207-
* @since n.e.x.t
207+
* @since 1.0.0
208208
*
209209
* @param non-empty-string $slug Slug (hash of normalized query vars).
210210
* @param OD_URL_Metric_Group_Collection $url_metric_group_collection URL Metric group collection containing the metrics to be stored.

plugins/optimization-detective/storage/data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function od_get_url_metrics_breakpoint_sample_size(): int {
464464
/**
465465
* Gets the maximum allowed size in bytes for a URL Metric serialized to JSON.
466466
*
467-
* @since n.e.x.t
467+
* @since 1.0.0
468468
* @access private
469469
*
470470
* @return positive-int Maximum allowed byte size.
@@ -475,7 +475,7 @@ function od_get_maximum_url_metric_size(): int {
475475
*
476476
* The default value is 1 MB.
477477
*
478-
* @since n.e.x.t
478+
* @since 1.0.0
479479
*
480480
* @param int $max_size Maximum allowed byte size.
481481
* @return int Filtered maximum allowed byte size.

plugins/optimization-detective/tests/storage/test-class-od-rest-url-metrics-store-endpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Class Test_OD_REST_URL_Metrics_Store_Endpoint used to test `OD_REST_URL_Metrics_Store_Endpoint` class.
1010
*
11-
* @since n.e.x.t
11+
* @since 1.0.0
1212
*
1313
* @noinspection PhpUnhandledExceptionInspection
1414
* @noinspection PhpDocMissingThrowsInspection

0 commit comments

Comments
 (0)