Releases: veliovgroup/meteor-cookies
Releases · veliovgroup/meteor-cookies
v2.9.0
☄️ Packosphere @2.9.0
What's new?
- 🤝 Compatibility with
meteor@3
- 🤓 TypeScript definitions
- 🤓 100% JSDoc coverage
- 📔 Enhanced documentation with more examples
- 👨🔬 Refactored and improved test-suite, covering 99.9% of codebase and usage cases
- ✨ Support for latest cookies options (
partitioned
,priority
) - 👨💻 Replaced deprecated Browser and Node.js methods and functions
- 👨💻 Optimized codebase for performance
Read detailed article about this release
New features:
- ✨
.sendAsync()
Client method - ✨
.destroy()
Server method - ✨
.set(key, value, opts)
—opts
now supportpartitioned
andpriority
attributes in theSet-Cookie
header - ✨
CookiesCore
class for direct cookies management without server-features
Major Changes:
⚠️ Now.send()
and.sendAsync()
Client methods will sync newly received (or removed) cookies from server (it was broken prior to this release)⚠️ .middleware()
Server methods will log a warning if middleware is already registered. Allhandler
andonCookie
methods will still trigger as expected; What's changed — only one middleware is registered per allCookie
instances- 👨💻 No other major changes to API that may affect current usage
Changes:
- 👨💻 Support multiple
onCookie
hooks andhandler
callbacks registered via multiplenew Cookies()
- 👨💻
onCookie
hooks andhandler
callbacks now can be asynchronous and are awaited in the middleware pipeline - ✨ Now both
Cookies
andCookiesCore
acceptopts.name
option when creating new instances that sets.NAME
property - ✨ Instances now expose
.NAME
and.id
properties onCookies
andCookiesCore
instances for easier debugging and identification; and used in the default debug messages
Dependencies:
- 📦 Added
zodern:types
, as weak dependency - 📦 Added
typescript
, as weak dependency - 📦 Updated to
[email protected]
, was[email protected] || 0.1.4-beta300.0
Compare with previous release: 2.8.1...2.9.0
v2.8.1
☄️ Packosphere @2.8.1
Changes:
- 🚀 Support for the latest beta of
meteor@3
, thanks to @vparpoil
Dependencies:
- 📦 Updated to
[email protected] || 0.1.4-beta300.0
v2.8.0
☄️ Packosphere @2.8.0
Changes:
- 🖥️ Meteor-Desktop support, thanks to @dd137
- 🚀 Support for
[email protected]
, thanks to @dallman2 - 📔 Docs update to match changes
Dependencies:
- 📦
[email protected]
, wasv0.1.1
v2.7.2
- 👷♂️ Fix #19, thanks to @bladerunner2020
v2.7.1
This is maintenance release
- 👨💻 Minor codebase changes
- 👨🔬 Improve test-suite
- 🤝 Compatibility with latest
[email protected]
v2.7.0
- 🤝 Compatibility with
[email protected]
; - 👷 Drop deprecated
http
package in favor offetch
; - 👨🔬 Minor tests update for compatibility.
v2.6.1
- 🤝Compatibility with
[email protected]
; - 🐞 Fix: #17 — set multiple cookies on the server; Thanks to @Ajaay for submitting this issue;
- 📋 Minor documentation enhancements;
- 📦 Internal Meteor dependencies upgrade.
v2.6.0
- 🤝 Compatibility with
[email protected].*
; - 📋 Documentation update regarding
SameSite
option; - 👨🔬 Test-suite minor update;
- 📦 Internal Meteor dependencies update;
Changed:
- ✨
SameSite
option now accepts String (and Boolean for backward compatibility) to comply with new guidelines. Suggested values:None
,Strict
, andLax
.
v2.5.0
This release mainly focused on Cordova usage improvements
Added:
- ✨
opts.allowQueryStringCookies
{Boolean} - Allow passing Cookies in a query string (in URL). Primary should be used only in Cordova environment. Note: this option will be used only on Cordova; - ✨
opts.allowedCordovaOrigins
{Regex|Boolean} - [Server] Allow setting Cookies from that specific origin which in Meteor/Cordova is localhost:12XXX. Set to default^http:\/\/localhost:12[0-9]{3}$
if set totrue
. Default:false
; - 📋 Explaining Cordova usage in a FAQ documentation section.
v2.4.1
- 📋 Minor documentation update — add FAQ section
- 👨💻 Minor codebase enhancements
- 👷♂️ This is regular maintenance release