-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laminas\Json dependency removal #68
Conversation
e6497d3
to
b087299
Compare
This should either go to |
OK @Ocramius - I'll rebase later on. Would 3.x be best considering the impact on the Json view helper? Perhaps a deprecation warning should be issued in 2.13.x if usage of the Json\Expr finder is detected? |
Oh yeah… literally everything is hanging in the balance 😬 https://www.githubstatus.com/incidents/xn0sd2x4nd7f |
TBH, I dont have any plans on this package. 😅 |
Good catch on the exception type - very hidden BC boundary. Probably indeed better to re-target |
I should probably rebase later on once 2.12/2.13 is in the works yes? Also, it's effectively a feature removal if anyone was using the Json Expression finder feature via the view helper and Laminas\Json package, so perhaps a new pull targeting 2 to announce future removal?? |
Yeah, but hold off yer rebases, since we first need to get |
Probably, providing some kind of |
Would it be weird to introduce a Json View Helper into the to-be-deprecated Laminas\Json package so that anyone requiring that functionality could depend on that? Then the current view helper could be replaced with what's effectively in this pull. |
Actually, it is not really deprecated but security-only (feature-complete). However, I think in order to manage forward compatibility, it might be possible. |
Well, needing |
Also, there's #33 which makes sense after looking at Laminas\Json. |
That's not entirely true in the case of this particular component's usage of it. One of the options you can pass as the second argument to the I think in this case, we have two options:
Honestly, I could go either way. I think there are other ways to accommodate expression support (e.g., adding the property with an expression within the body of the |
… composer requirements Signed-off-by: George Steel <[email protected]>
…retaining some encoding options Signed-off-by: George Steel <[email protected]>
…e that throws a DomainException on encoding error. Signed-off-by: George Steel <[email protected]>
…terface doc block Signed-off-by: George Steel <[email protected]>
…at a DomainException is thrown if there is an encoding error Signed-off-by: George Steel <[email protected]>
Signed-off-by: George Steel <[email protected]>
Signed-off-by: George Steel <[email protected]>
b087299
to
6ec6cee
Compare
Something went awfully wrong with the commit range here |
Yeah… I think I might just start fresh from 3.x and close this one. The biggest problem is MVC/i18n with everything in 3.x and the dep on root. I have no idea how to get deps installed on 3 because the mvc stuff wants view ^2. Do you have any pointers? Also, would it OK to create a new pull removing flash, console, json and other deprecations all in one go? |
This has been re-created in #125 |
Description
As per TSC #68, this pull removes the dev dependency on Laminas\Json.
json_encode
withJSON_THROW_ON_ERROR
. Mostly, Json exceptions are wrapped to throw a Zend\View\Exception, which I guess is a BC break?