Skip to content
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

Add clear method to clear existing cookies #20

Merged
merged 2 commits into from
Jun 13, 2016
Merged

Add clear method to clear existing cookies #20

merged 2 commits into from
Jun 13, 2016

Conversation

dillonwelch
Copy link
Contributor

Came across the need for this ability while using the library in my project.

I wasn't sure how you wanted me to update CHANGELOG.md to reflect the new feature. Let me know what your style is and I'll add that too!

@@ -53,6 +53,7 @@ The `cookies` service has methods for reading and writing cookies:
`String`.
* `write(name, value, options = {})`: writes a cookie with the given name and
value; options can be used to set `domain`, `expires`, `path` and `secure`.
* `clear(name)`: clears the cookie so that future reads do not return a value
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so that future reads do not return a value

I think clears the cookie should be sufficient in here ;)

@marcoow
Copy link
Member

marcoow commented Jun 13, 2016

Looks good - thanks!

I usually update the CHANGELOG.md in the commit that releases a new version so no need for you to do anything on that side.

@marcoow marcoow merged commit e4b7cec into mainmatter:master Jun 13, 2016
@dillonwelch dillonwelch deleted the add_clear_method branch June 13, 2016 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants