Skip to content

Commit 30466d9

Browse files
author
Andrew Welch
committed
Merge branch 'release/1.1.14' into v1
2 parents 7295ac7 + eda356d commit 30466d9

File tree

6 files changed

+181
-186
lines changed

6 files changed

+181
-186
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Cookies Changelog
22

3+
## 1.1.14 - 2021.04.15
4+
### Changed
5+
* Move settings from the `composer.json` “extra” to the plugin main class
6+
7+
### Fixed
8+
* Removed duplicate example for Setting Secure Cookies in the docs (https://github.com/nystudio107/craft-cookies/issues/23)
9+
310
## 1.1.13 - 2021.03.31
411
### Added
512
* Added Dockerfile & Makefile for building docs

buildchain/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"url": "git+https://github.com/nystudio107/craft-cookies.git"
3131
},
3232
"scripts": {
33-
"docs": "cd ../docs && rm -f package-lock.json && npm install && npm run docs:build"
33+
"docs": "cd ../docs && rm -f package-lock.json && npm install && npm update && npm run docs:build"
3434
},
3535
"version": "1.1.13"
3636
}

composer.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nystudio107/craft-cookies",
33
"description": "A simple plugin for setting and getting cookies from within Craft CMS templates.",
44
"type": "craft-plugin",
5-
"version": "1.1.13",
5+
"version": "1.1.14",
66
"keywords": [
77
"craft",
88
"cms",
@@ -32,13 +32,7 @@
3232
"extra": {
3333
"name": "Cookies",
3434
"handle": "cookies",
35-
"schemaVersion": "1.0.0",
36-
"hasCpSettings": false,
37-
"hasCpSection": false,
3835
"changelogUrl": "https://raw.githubusercontent.com/nystudio107/craft-cookies/v1/CHANGELOG.md",
39-
"class": "nystudio107\\cookies\\Cookies",
40-
"components": {
41-
"cookies": "nystudio107\\cookies\\services\\CookiesService"
42-
}
36+
"class": "nystudio107\\cookies\\Cookies"
4337
}
4438
}

docs/docs/README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,6 @@ Both of these methods accomplish the same thing:
143143

144144
This function works the same as `getCookie` but it uses `Craft::$app->getRequest()->getCookie()` to retrieve the cookies via Craft. It also utilizes `craft->security` framework to decrypt and validate the cookie contents between requests.
145145

146-
**Example**
147-
148-
```twig
149-
{% do getSecureCookie('marvin') %}
150-
{# Get the cookie using 'getSecureCookie' function #}
151-
152-
{% do craft.cookies.getSecure('marvin') %}
153-
{# Get the cookie using 'getSecure' variable #}
154-
155-
{% if getSecureCookie('marvin') %}
156-
{% set myCookie = getSecureCookie('marvin') %}
157-
{{ myCookie }}
158-
{% endif %}
159-
```
160146

161147
## Deleting cookies
162148

0 commit comments

Comments
 (0)