ocookie 0.2.0
ocookie: ^0.2.0 copied to clipboard
Cookie and Set-Cookie parser and serializer.
0.2.0 #
Breaking Changes #
Cookie.httpOnly,Cookie.secure, andCookie.partitionedare now two-state flags withfalsedefaults.- Omitting those flags is now equivalent to setting them to
false. - Removed
CookieNullableField.httpOnly,CookieNullableField.secure, andCookieNullableField.partitioned. - Migrate
copyWith(clear: {...})call sites by removing those deleted enum values and using omitted flags or explicitfalseinstead.
Parser Behavior #
Cookie.fromStringnow treats explicitSecure=false,HttpOnly=false, andPartitioned=falseas disabled flags.- Expanded
Set-Cookiecompatibility coverage for repeated attributes, quoted values containing=, unknown attributes, and combined header splitting around quoted commas andExpiresdates.
Tooling #
- Updated
lintsto6.1.0. - Updated
actions/checkouttov6.
0.1.0 #
- add
Cookie.validatefor explicit pre-serialization checks - add
Cookievalue equality (==andhashCode) - add
copyWith(clear: {...})to explicitly clear nullable fields - harden
Cookie.fromStringvalidation and malformed-attribute handling - improve
splitSetCookierobustness with extra separators and whitespace - enforce
Securerequirements forSameSite=NoneandPartitioned - expand tests with regression and deterministic fuzz coverage
- improve README usage docs for validation and
copyWithclearing
0.0.1 #
- first publish