Skip to content

Releases: api-platform/core

v4.0.3

04 Oct 14:50
v4.0.3
3b948b3
Compare
Choose a tag to compare

What's Changed

  • [Laravel]: Fix authorization swagger ui by @toitzi in #6661
  • Laravel: Use Model::qualifyColumn() instead of $table.$column by @GromNaN in #6658
  • Fix: route registration of EntrypointController should be after GraphQL's EntrypointController by @BurningDog in #6667
  • fix(laravel): eloquent accessors by @soyuka in #6668
  • fix(laravel): fix hiding/showing relationships by @toitzi in #6679
  • fix(laravel): fixes to secure a graphql endpoint by @soyuka in #6691

Note

For GraphQL with Laravel #6691 is giving some details about how security works while we're working on updating our documentation

New Contributors

Full Changelog: v4.0.2...v4.0.3

v3.4.2

04 Oct 14:10
v3.4.2
6dfa89b
Compare
Choose a tag to compare

What's Changed

  • fix: remove "hydra:" remaining prefix by @vincentchalamon in #6624
  • fix(metadata): parameter provider in a long running http worker by @rmikalkenas in #6683
  • fix(jsonapi): fixed definition name to allow using the same class names in different namespaces by @nightio in #6676
  • fix(elasticsearch): Allow ES 7 by @dannyvw in #6689
  • fix(metadata): overwriting XML ApiResource definition by YAML ApiResource definition by @GSadee in #6660
  • fix(metadata): using parameters in fromClass and toClass uriVariables' options by @GSadee in #6663
  • fix(metadata): passing class as parameter in XML ApiResource's definition by @GSadee in #6659

Warning

Hydra prefix on errors is breaking, read title not hydra:title. The hydra_prefix flag doesn't apply to errors as it provided redundant information (both hydra:title and title were available)

New Contributors

Full Changelog: v3.4.1...v3.4.2

v3.3.14

04 Oct 14:02
v3.3.14
5d3d8b1
Compare
Choose a tag to compare

What's Changed

  • style: cs-fixer update by @soyuka in #6568
  • fix(doctrine): use parameter.property as filter value key by @nikophil in #6572
  • perf: skip context data added in #5758 by @soyuka in #6612
  • fix: count TraversablePaginator by @nikophil in #6611
  • fix(jsonapi): fixed definition name to allow using the same class names in different namespaces by @nightio in #6676

Full Changelog: v3.3.12...v3.3.14

v4.0.0

27 Sep 12:59
825833c
Compare
Choose a tag to compare

Notes

Supports > PHP 8.2

What's Changed

Laravel support is out! Check out our website https://api-platform.com/ or the https://api-platform.com/docs/laravel/ documentation.

  • feat(laravel): laravel component by @soyuka in #5882
  • fix(laravel): SwaggerUI title by @dunglas in #6527
  • fix(laravel): Eloquent date and datetime type detection by @dunglas in #6529
  • feat(laravel): policy, auth and gate by @soyuka in #6523
  • fix(laravel): do not normalize exception originalTrace by @soyuka in #6533
  • fix(laravel): identitifer is not writable unless marked as writable by @soyuka in #6531
  • fix(laravel): snake case props by @dunglas in #6532
  • fix(laravel): Eloquent PropertyAccessor by @dunglas in #6536
  • feat(laravel): search filter by @soyuka in #6534
  • fix(laravel): api_doc route regex by @dunglas in #6540
  • fix(laravel): visible and hidden fields support by @dunglas in #6538
  • fix(laravel): entrypoint serialization by @dunglas in #6541
  • feat(laravel): provide a trait in addition to the annotation by @dunglas in #6543
  • feat(laravel): supports more Eloquent types by @dunglas in #6544
  • feat(laravel): enable graphQl support by @soyuka in #6550
  • fix(laravel): entrypoint with doc formats by @soyuka in #6552
  • fix(laravel): cache metadata, add trace on debug mode by @soyuka in #6555
  • feat(doctrine): add new filter for filtering an entity using PHP backed enum, resolves #6506 by @mremi in #6547
  • fix: remove PUT from default operations by @soyuka in #6570
  • fix(laravel): disable GraphQL by default and fix provider by @dunglas in #6585
  • fix(laravel): register HydraPartialCollectionViewNormalizer by @dunglas in #6588
  • feat(laravel): eloquent filters (search, date, equals, or) by @soyuka in #6593
  • fix(laravel): docs _format and open swagger ui by @soyuka in #6595
  • Various Laravel fixes (defaults, serializer context) by @soyuka in #6601
  • feat(laravel): parameter validator + security by @soyuka in #6603
  • fix(laravel): remove json api provider by @soyuka in #6605
  • fix(state): remove resource_class change by @soyuka in #6607
  • feat(laravel): eloquent filters date range by @NathanPesneau in #6606
  • fix(laravel): wrong filter dependency by @dunglas in #6614
  • Feat/laravel parameter validator by @NathanPesneau in #6610
  • fix(laravel): validate enum schema within filter by @soyuka in #6615
  • feat(laravel): add CSV support by @dunglas in #6617
  • fix: swagger ui with route identifier by @soyuka in #6616
  • fix(laravel): call authorize on delete but not validation by @soyuka in #6618

New Contributors

Full Changelog: v3.4.0...v4.0.0

v4.0.2

27 Sep 13:05
v4.0.2
1cf0a13
Compare
Choose a tag to compare

What's Changed

  • fix: default format and standard_put values by @soyuka in #6635
  • fix(serializer): allow state's SerializerFilterContextBuilderInterface by @michalbundyra in #6632
  • fix: incorrect namespace by @endroid in #6642
  • fix: composer.json config by @dunglas in #6640
  • fix(symfony): missing alias to serializer context builder interface by @soyuka in #6643
  • fix(graphql): wrong exception namespace by @soyuka in #6647
  • fix(serializer): remove serializer context builder interface by @soyuka in #6639
  • feat(laravel): remove unnecessary dependency by @maxhelias in #6637
  • feat(laravel): add installation command, fix config overwrites by @toitzi in #6649

New Contributors

Full Changelog: v4.0.1...v4.0.2

v4.0.1

19 Sep 16:22
v4.0.1
80fc2d2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.0...v4.0.1

v3.4.0

18 Sep 17:32
v3.4.0
70e9b9a
Compare
Choose a tag to compare

What's Changed

  • feat(openapi): allow optional request body content by @monitaurus in #6374
  • Allow IRI to be pre-configured in context when serializing in HAL or JsonApi format by @pupaxxo in #6215
  • test: Backed enum resource tests by @GwendolenLynch in #6288
  • fix(doctrine): allow doctrine/dbal:^4 by @soyuka in #6425
  • feat: BackedEnum resources by @GwendolenLynch in #6309
  • feat: inflector as service by @soyuka in #6447
  • feat(state): add security to parameters by @emmanuel-averty in #6435
  • fix(state): security parameter with listeners by @soyuka in #6457
  • feat: deprecate query parameter validator by @soyuka in #6454
  • feat(symfony): skip error handler by @soyuka in #6463
  • docs: remove unnecessary comments by @ttskch in #6408
  • fix(elasticsearch): change normalize return type to compatible with other normalizers by @Koenstell in #6493
  • Various cs fixes by @soyuka in #6504
  • fix(symfony): fix debug:api-resource command for class with multiple resources with same uriTemplate by @c1tru55 in #6505
  • Fix(graphql)(mercure): Use public URL for subscription URI creation if it is available by @psihius in #6514
  • fix: parameter context for filters by @soyuka in #6535
  • Fix deserialization path for not denormalizable relations collected errors by @julienfalque in #6537
  • fix(symfony): allow schema restriction for collection like property from choice constraint by @c1tru55 in #6520
  • fix: use correct class in FilterValidationException deprecation message by @nikophil in #6549
  • feat(openapi): make open_api_override_responses act on default 404 response generation by @monitaurus in #6551
  • refactor(metadata): provide a trait in addition to the attribute by @soyuka in #6558
  • feat(doctrine): add new filter for filtering an entity using PHP back… by @soyuka in #6560
  • fix(symfony): load isApiResource metadata by @soyuka in #6562
  • feat(dx): additional log to help locate a potential missing provider by @mrossard in #6519
  • fix(doctrine): use parameter.property as filter value key by @nikophil in #6572
  • fix(doctrine): move event listeners to doctrine/common by @soyuka in #6573
  • fix: deprecate url generator interface namespace by @soyuka in #6575
  • fix(doctrine): remove messenger requirement by @soyuka in #6580
  • fix: move event listeners to the symfony component by @soyuka in #6587
  • feat: remove hydra prefix by @soyuka in #6418
  • feat: better path sorting for openapi UIs by @mrossard in #6583
  • fix: replace ApiPlatform\Exception use by ApiPlatform\Metadata\Exception by @vincentchalamon in #6597
  • feat(openapi): add error resources schemes by @JacquesDurand in #6332
  • fix(hydra): error hydra prefix by @soyuka in #6599
  • feat(symfony): add error page by @soyuka in #6389
  • feat(state): "deserializer_type" context by @soyuka in #6429
  • perf: skip context data added in #5758 by @soyuka in #6612
  • fix: count TraversablePaginator by @nikophil in #6611

New Contributors

Full Changelog: v3.3.11...v3.4.0

v3.3.13

15 Sep 08:25
v3.3.13
d08d4dd
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.3.12...v3.3.13

v4.0.0-alpha.5

27 Sep 13:02
v4.0.0-alpha.5
fa3eb47
Compare
Choose a tag to compare
v4.0.0-alpha.5 Pre-release
Pre-release

What's Changed

  • Typo fix in delete-operation-with-validation guide by @piotrgradzinski in #6419
  • feat(laravel): laravel component by @soyuka in #5882
  • perf: use XXH3 instead of MD5 by @dunglas in #6487
  • fix(laravel): SwaggerUI title by @dunglas in #6527
  • fix(laravel): Eloquent date and datetime type detection by @dunglas in #6529
  • feat(laravel): policy, auth and gate by @soyuka in #6523
  • fix(laravel): do not normalize exception originalTrace by @soyuka in #6533
  • fix(laravel): identitifer is not writable unless marked as writable by @soyuka in #6531
  • fix(laravel): snake case props by @dunglas in #6532
  • fix(laravel): Eloquent PropertyAccessor by @dunglas in #6536
  • feat(laravel): search filter by @soyuka in #6534
  • chore(laravel): only enable JSON-LD by default by @dunglas in #6528
  • fix(laravel): api_doc route regex by @dunglas in #6540
  • fix(laravel): visible and hidden fields support by @dunglas in #6538
  • fix(laravel): entrypoint serialization by @dunglas in #6541
  • feat(laravel): provide a trait in addition to the annotation by @dunglas in #6543
  • feat(laravel): supports more Eloquent types by @dunglas in #6544
  • feat(laravel): enable graphQl support by @soyuka in #6550
  • fix(laravel): entrypoint with doc formats by @soyuka in #6552
  • fix(laravel): cache metadata, add trace on debug mode by @soyuka in #6555
  • feat(doctrine): add new filter for filtering an entity using PHP backed enum, resolves #6506 by @mremi in #6547
  • fix: remove PUT from default operations by @soyuka in #6570
  • fix(laravel): disable GraphQL by default and fix provider by @dunglas in #6585
  • fix(laravel): register HydraPartialCollectionViewNormalizer by @dunglas in #6588
  • feat(laravel): eloquent filters (search, date, equals, or) by @soyuka in #6593
  • fix(laravel): docs _format and open swagger ui by @soyuka in #6595

New Contributors

Full Changelog: v3.4.0-alpha.5...v4.0.0-alpha.5

v3.4.0-alpha.5

06 Sep 14:32
v3.4.0-alpha.5
9aadc2c
Compare
Choose a tag to compare
v3.4.0-alpha.5 Pre-release
Pre-release

Deprecations:

Namespaces like ApiPlatform/Api, or ApiPlatform/Util are deprecated and will be removed in 4.0.
You should now install api-platform/symfony instead of api-platform/core.
The QueryParameterValidator is deprecated, use the new QueryParameter with constraints attribute instead.

What's Changed

  • fix: parameter context for filters by @soyuka in #6535

  • fix(doctrine): allow doctrine/dbal:^4 by @soyuka in #6425

  • fix(state): security parameter with listeners by @soyuka in #6457

  • Fix(graphql)(mercure): Use public URL for subscription URI creation if it is available by @psihius in #6514

  • test: Backed enum resource tests by @GwendolenLynch in #6288 and #6309

  • feat(dx): additional log to help locate a potential missing provider by @mrossard in #6519

  • fix(doctrine): move event listeners to doctrine/common by @soyuka in #6573

  • fix: deprecate url generator interface namespace by @soyuka in #6575

  • feat(openapi): allow optional request body content by @monitaurus in #6374

  • feat): Allow IRI to be pre-configured in context when serializing in HAL or JsonApi format by @pupaxxo in #6215

  • feat: inflector as service by @soyuka in #6447

  • feat(state): add security to parameters by @emmanuel-averty in #6435

  • feat: deprecate query parameter validator by @soyuka in #6454

  • feat(symfony): skip error handler by @soyuka in #6463

  • feat(openapi): make open_api_override_responses act on default 404 response generation by @monitaurus in #6551

  • refactor(metadata): provide a trait in addition to the attribute by @dunglas in #6558

  • feat(doctrine): add new filter for filtering an entity using PHP enums by @mremi in #6560

  • feat: remove hydra prefix by @soyuka in #6418

New Contributors

Full Changelog: v3.3.12...v3.4.0-alpha.2