Skip to content

Releases: dedoc/scramble

v0.8.2

06 Aug 17:17
b3bcbc3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.8.1...v0.8.2

v0.8.1

05 Aug 09:42
f6422be
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.8.0...v0.8.1

v0.8.0

30 Jul 09:39
Compare
Choose a tag to compare

What's Changed

🚨 Breaking changes 🚨

  • Minimum PHP version is changed from 7.4 to 8.1. 96.4% of all the installs are coming from 8.1 and upper, so it's time to make this bump.
  • Extensions API changes - internal type inference system got a huge rework, so I needed to update the extensions API to reflect that.

Added

Changes

Fixes

  • Fixed spread operator not being properly analyzed when inferring a type for an array by @romalytvynenko in #123

Full Changelog: v0.7.2...v0.8.0

v0.7.2

20 Feb 08:51
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.1...v0.7.2

v0.7.1

01 Feb 19:12
aeaed0a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.7.1

v0.7.0

12 Jan 11:14
Compare
Choose a tag to compare

What's Changed

  • Added server variables support, added multiple servers support by @romalytvynenko in #76
  • Added an ability to document request body params (in validation rules): allowed overriding resulting type, adding description, and example by @romalytvynenko in #88
  • Added abort helpers support (abort, abort_if, abort_unless) by @romalytvynenko in #94
  • Improved support of other JsonResources in the resource class, added support of 3rd argument in when and whenLoaded by @romalytvynenko in #87
  • Fixed an issue when references couldn't be marked as nullable by @romalytvynenko in #74
  • Fixed fatal error when an array item was manually documented without @var by @romalytvynenko in #75
  • Fixed exception caused by incorrect class const fetch on variables and other expressions handling by @romalytvynenko in #86
  • Improve array validation rule and falsy examples support by @romalytvynenko in #89
  • Fixed an access to exceptions property on possibly nullable object by @romalytvynenko in #95
  • Fix missing phpDoc attributes on resolved type attached by PhpDocHandler when they're attached to pending type by @romalytvynenko in #96
  • Fixed an exception when doctrine/dbal is not installed by @romalytvynenko in #99

Full Changelog: v0.6.0...v0.7.0

v0.6.0

07 Nov 19:31
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.0...v0.6.0

v0.5.0

02 Oct 17:26
Compare
Choose a tag to compare

🫣 Breaking change

Applicable if you've published Scramble's config or relied on the default route resolver behavior (which resolved routes by looking if a route uses api middleware). In most cases you shouldn't really be affected by the change unless you modified API base URL.

In 0.4.0 I've introduced api_base_url config that allowed configuring and modifying API base URL. By default it was url('/api'). Sadly enough, using url in config file caused php artisan serve to fail with the following error:

Illuminate\Routing\UrlGenerator::__construct(): Argument #2 ($request) must be of type Illuminate\Http\Request, null given,  
   called in /***/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line   
  67  

To fix the issue I decided to go away from the idea of using url helper in config and instead, and introduced api_path config. So now this part of the config is much simpler and looks like 'api_path' => 'api'.

Also, the default behavior of the default routes resolver changed as well. Previously it took all the routes that were using api middleware. From now on, by default all the routes which URL starts with api/ (scramble.api_path) will be used.

Full Changelog: v0.4.0...v0.5.0

v0.4.0

01 Oct 21:14
Compare
Choose a tag to compare

What's Changed

  • Added models support (both for schema and responses) by @romalytvynenko in #22
  • Added manual response type hints support to describe responses in docs by @romalytvynenko in #33
  • Added ability to customize API base URL, version, and description by @romalytvynenko in #41
  • Added ability to disable security on a route by @romalytvynenko in #43
  • Fixed an error happening when $table in model's class is not a string (but array) by @romalytvynenko in #42
  • Fixed a case when function return type annotation caused a loss of the available details about the actual return type by @romalytvynenko in #39

Full Changelog: v0.3.0...v0.4.0

v0.3.0

23 Sep 16:20
811c9ba
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0