- Fix: The partitioned option should be set as secure option (#41)
- Types: Support
partitionedproperty inCookieOptionstype definition.
- Fix: Fix import error in node environment #35
In this version, it is refactored in typescript and the development dependencies are upgraded to latest.
- Feature: Support Conditional exports
- Fix: Fix the type declaration of
CookieOptions,get/getCookie,getAllandset/setCookie - Test: Use Github Actions instead of Travis CI
- Fix: Set path to root when testing if cookies are enabled #28
- Fix: Fix path option is ignored when removeCookie is called #27
- Feature: Add flow types.
- Feature: Add typescript types.
- Document: Add Chinese document.
- Fix: Fix
esdirectory missing bug #22.
- Fix: Fix bug when passing options as the third parameter to set method the encoder is null #18.
- Feature: The
remove()method supports configuring the domain parameter.
- Fix: Fix the es modules build #16
- Fix: Fix the "main" entry in package.json #13
With modern development workflow, such as Babel, Rollup, Karma, npm scripts and so on.
- Breaking change: Do not support the
Cookieas a function. - Breaking change: There is not a default export. That is,
import cookie from 'tiny-cookiedoesn't work. The reason why it hasn't a default export is it will prevent the webpack tree-shaking working. You can do it like thisimport * as cookie from 'tiny-cookie'.#14 - Breaking change: Rename
enabledmethod toisEnabled. - Feature: Add
getAllmethod to get all cookie pairs at a time. - Feature: Add aliases for all methods, for details, you can see API
- Add a command to start an http(s) server.