timacdonald / json-api

A lightweight API resource for Laravel that helps you adhere to the JSON:API standard. Supports sparse fieldsets, compound documents, and more.
586 stars 40 forks source link

Laravel 10.x Compatibility #24

Closed laravel-shift closed 1 year ago

laravel-shift commented 1 year ago

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 9.x.

Before merging, you need to:

If you do find an issue, please report it by commenting on this PR to help improve future automation.

laravel-shift commented 1 year ago

:warning: Shift detected a dependency for the laravel/framework. Unless you have a special requirement for depending on the entire Laravel framework, it's recommended to add dependencies for the specific illuminate packages instead.

laravel-shift commented 1 year ago

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.

To do so, temporarily add Shift's fork to the repositories property of your composer.json:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/json-api.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:

{
    "require": {
        "timacdonald/json-api": "dev-l10-compatibility",
    }
}

Finally, run: composer update

jeffwhansen commented 1 year ago

Do we have an eta on laravel 10.x support? Thanks for the awesome package.

lloricode commented 1 year ago

+1

lloricode commented 1 year ago

can not use this while using Model::shouldBeStrict(),

since this is the fix on v1.0.0-beta.3

https://github.com/timacdonald/json-api/blob/deb13fa2d3375f50a1aec8fb90c822161ce2f364/src/Concerns/Attributes.php#L71

timacdonald commented 1 year ago

Hey folks, 10.0 will drop soon. Just need some time to review.

timacdonald commented 1 year ago

@lloricode interested to know how that breaks things. Can you paste me the error message? It is my understanding that property_exists doesn't invoke anything via magic getters.

lloricode commented 1 year ago

@lloricode interested to know how that breaks things. Can you paste me the error message? It is my understanding that property_exists doesn't invoke anything via magic getters.

Hi, it seems this PR is not updated with your branch, that is why even installing this using laravel-shift repo, will still does not works while using Model::shouldBeStrict()

lloricode commented 1 year ago

Screenshot_2023-02-20_14-10-37

@timacdonald

timacdonald commented 1 year ago

Ah, gotcha. Yea, the branch needs to be rebased.

lloricode commented 1 year ago

Ah, gotcha. Yea, the branch needs to be rebased.

thank you

timacdonald commented 1 year ago

This has been tagged.

If you are coming from a 0.x version, please see the upgrade guide.

jeffwhansen commented 1 year ago

Thank you!

On Feb 20, 2023, at 1:24 AM, Tim MacDonald @.***> wrote:

This has been tagged https://github.com/timacdonald/json-api/releases/tag/v1.0.0-beta.4.

If you are coming from a 0.x version, please see the upgrade guide https://github.com/timacdonald/json-api/blob/main/UPGRADE.md.

— Reply to this email directly, view it on GitHub https://github.com/timacdonald/json-api/pull/24#issuecomment-1436535964, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASWCZ2WY72TD64O3KVDPTTWYMS5LANCNFSM6AAAAAAUOVPAWE. You are receiving this because you commented.