Skip to content

Commit

Permalink
4.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Dec 25, 2023
1 parent 5714e3f commit 2e5f697
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

# 4.28.0 (25 December 2023)
## Added
- **Support for external UIs**: You can now use an external client-side UI such as [Scalar](https://github.com/scalar/scalar). Details in [the config reference](https://scribe.knuckles.wtf/laravel/reference/config#theme).
- **Configurable strategies**: You can now configure strategies individually, by using the _tuple_ format. A tuple is an array with two elements; the first is the strategy class, and the second is the settings array. For instance, you can configure response calls to only be used on certain endpoints:
```php
'responses' => [
Expand Down Expand Up @@ -49,8 +50,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
]
],
```

- **New config format**: In an effort to simplify the config file and surface the most useful items, we're trying out a new config format which should be the default in v5. See [the docs]() for details.
- **Better route matching**: Route matching now works with both method and URL. Previously, in you could only specify route name or URL. Now you can also specify "GET /path", "GET path", or "GET pa*".

# 4.27.0 (21 December 2023)
Expand Down
3 changes: 2 additions & 1 deletion src/Extracting/Strategies/Strategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public static function wrapWithSettings(

return [
static::class,
['only' => $only, 'except' => $except, ...$otherSettings],
// This would be ...$otherSettings, but it's PHP 8.1+
array_merge(['only' => $only, 'except' => $except], $otherSettings),
];
}
}
2 changes: 1 addition & 1 deletion src/Scribe.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class Scribe
{
public const VERSION = '4.27.0';
public const VERSION = '4.28.0';

/**
* Specify a callback that will be executed just before a response call is made
Expand Down

0 comments on commit 2e5f697

Please sign in to comment.