Upgrading lcobucci/jwt 4 to 5
Unknown4.3.0 → 5.6.1
Fetching 11 releases from GitHub…0 / 11
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
PHP requirement changed in 5.6.0: ^7.4 || ^8.0 → ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- removed:
static method Configuration.forUnsecuredSigner(?Encoder $encoder = …, ?Decoder $decoder = …): self - changed:
constructor JwtFacade(?Parser $parser = …, ?Clock $clock = …) → constructor JwtFacade(Parser $parser = …, ?Clock $clock = …) - changed:
method Builder.getToken(Signer $signer, Key $key): Plain → method Builder.getToken(Signer $signer, Key $key): UnencryptedToken - changed:
method Builder.withClaim(string $name, $value): Builder → method Builder.withClaim(string $name, mixed $value): Builder - changed:
method Builder.withHeader(string $name, $value): Builder → method Builder.withHeader(string $name, mixed $value): Builder - changed:
method Decoder.jsonDecode(string $json) → method Decoder.jsonDecode(string $json): mixed - changed:
method Encoder.jsonEncode($data): string → method Encoder.jsonEncode(mixed $data): string - changed:
static method Configuration.forAsymmetricSigner(Signer $signer, Key $signingKey, Key $verificationKey, ?Encoder $encoder = …, ?Decoder $decoder = …): self → static method Configuration.forAsymmetricSigner(Signer $signer, Key $signingKey, Key $verificationKey, Encoder $encoder = …, Decoder $decoder = …): self - changed:
static method Configuration.forSymmetricSigner(Signer $signer, Key $key, ?Encoder $encoder = …, ?Decoder $decoder = …): self → static method Configuration.forSymmetricSigner(Signer $signer, Key $key, Encoder $encoder = …, Decoder $decoder = …): self - added:
method Configuration.withBuilderFactory(callable $builderFactory): self - added:
method Configuration.withParser(Parser $parser): self - added:
method Configuration.withValidationConstraints(Constraint ...$validationConstraints): self - added:
method Configuration.withValidator(Validator $validator): self
- changed:
method JoseEncoder.jsonDecode(string $json) → method JoseEncoder.jsonDecode(string $json): mixed - changed:
method JoseEncoder.jsonEncode($data): string → method JoseEncoder.jsonEncode(mixed $data): string
- removed:
abstract class UnsafeEcdsa extends OpenSSL - removed:
abstract class UnsafeRsa extends OpenSSL - removed:
constructor UnsafeEcdsa(SignatureConverter $converter) - removed:
final class None implements Signer - removed:
method None.algorithmId(): string - removed:
method None.sign(string $payload, Key $key): string - removed:
method None.verify(string $expected, string $payload, Key $key): bool - removed:
method UnsafeEcdsa.pointLength(): int - removed:
method UnsafeEcdsa.sign(string $payload, Key $key): string - removed:
method UnsafeEcdsa.verify(string $expected, string $payload, Key $key): bool - removed:
method UnsafeRsa.sign(string $payload, Key $key): string - removed:
method UnsafeRsa.verify(string $expected, string $payload, Key $key): bool - removed:
protected method UnsafeEcdsa.guardAgainstIncompatibleKey(int $type, int $lengthInBits): void - removed:
protected method UnsafeRsa.guardAgainstIncompatibleKey(int $type, int $lengthInBits): void - removed:
static method Ecdsa.create(): Ecdsa - removed:
static method UnsafeEcdsa.create(): UnsafeEcdsa - changed:
constructor Ecdsa(?SignatureConverter $converter = …) → constructor Ecdsa(SignatureConverter $converter = …)
- removed:
final class UnsafeSha256 extends UnsafeEcdsa - removed:
final class UnsafeSha384 extends UnsafeEcdsa - removed:
final class UnsafeSha512 extends UnsafeEcdsa - removed:
method UnsafeSha256.algorithm(): int - removed:
method UnsafeSha256.algorithmId(): string - removed:
method UnsafeSha256.pointLength(): int - removed:
method UnsafeSha384.algorithm(): int - removed:
method UnsafeSha384.algorithmId(): string - removed:
method UnsafeSha384.pointLength(): int - removed:
method UnsafeSha512.algorithm(): int - removed:
method UnsafeSha512.algorithmId(): string - removed:
method UnsafeSha512.pointLength(): int
- removed:
final class UnsafeSha256 extends Hmac - removed:
final class UnsafeSha384 extends Hmac - removed:
final class UnsafeSha512 extends Hmac - removed:
method UnsafeSha256.algorithm(): string - removed:
method UnsafeSha256.algorithmId(): string - removed:
method UnsafeSha256.minimumBitsLengthForKey(): int - removed:
method UnsafeSha384.algorithm(): string - removed:
method UnsafeSha384.algorithmId(): string - removed:
method UnsafeSha384.minimumBitsLengthForKey(): int - removed:
method UnsafeSha512.algorithm(): string - removed:
method UnsafeSha512.algorithmId(): string - removed:
method UnsafeSha512.minimumBitsLengthForKey(): int
- removed:
final class LocalFileReference implements Key - removed:
method LocalFileReference.contents(): string - removed:
method LocalFileReference.passphrase(): string - removed:
static method InMemory.empty(): self - removed:
static method LocalFileReference.file(string $path, string $passphrase = …): self
- removed:
final class UnsafeSha256 extends UnsafeRsa - removed:
final class UnsafeSha384 extends UnsafeRsa - removed:
final class UnsafeSha512 extends UnsafeRsa - removed:
method UnsafeSha256.algorithm(): int - removed:
method UnsafeSha256.algorithmId(): string - removed:
method UnsafeSha384.algorithm(): int - removed:
method UnsafeSha384.algorithmId(): string - removed:
method UnsafeSha512.algorithm(): int - removed:
method UnsafeSha512.algorithmId(): string
- removed:
static method Signature.fromEmptyData(): self - changed:
method Builder.getToken(Signer $signer, Key $key): Plain → method Builder.getToken(Signer $signer, Key $key): UnencryptedToken - changed:
method Builder.withClaim(string $name, $value): BuilderInterface → method Builder.withClaim(string $name, mixed $value): BuilderInterface - changed:
method Builder.withHeader(string $name, $value): BuilderInterface → method Builder.withHeader(string $name, mixed $value): BuilderInterface - changed:
method DataSet.get(string $name, $default = …) → method DataSet.get(string $name, mixed $default = …): mixed - added:
static method Builder.new(Encoder $encoder, ClaimsFormatter $claimFormatter): self - added:
static method InvalidTokenStructure.missingClaimsPart(): self - added:
static method InvalidTokenStructure.missingHeaderPart(): self - added:
static method InvalidTokenStructure.missingSignaturePart(): self
- added:
constructor ConstraintViolation(string $message = …, ?string $constraint = …) - added:
constructor RequiredConstraintsViolated(string $message = …, array $violations = …) - added:
property RequiredConstraintsViolated.violations: array
- removed:
constructor ValidAt(Clock $clock, ?DateInterval $leeway = …) - removed:
final class ValidAt implements Constraint - removed:
method ValidAt.assert(Token $token): void - changed:
constructor HasClaimWithValue(string $claim, $expectedValue) → constructor HasClaimWithValue(string $claim, mixed $expectedValue) - added:
constructor HasClaim(string $claim) - added:
constructor SignedWithOneInSet(SignedWithUntilDate ...$constraints) - added:
constructor SignedWithUntilDate(Signer $signer, Signer\Key $key, DateTimeImmutable $validUntil, ?ClockInterface $clock = …) - added:
final class HasClaim implements Constraint - added:
final class SignedWithOneInSet implements SignedWithInterface - added:
final class SignedWithUntilDate implements SignedWithInterface - added:
method HasClaim.assert(Token $token): void - added:
method SignedWithOneInSet.assert(Token $token): void - added:
method SignedWithUntilDate.assert(Token $token): void