Skip to content

Commit b1378c1

Browse files
Bump version to 5.4.0
1 parent a6af4f2 commit b1378c1

12 files changed

+63
-26
lines changed

CHANGELOG.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,47 @@
11
# CHANGELOG.md
22

3+
## 5.2.0 (2020-10-07)
4+
5+
- Added `forceCookies` option. Thank you @YannikFirre.
6+
37
## 5.1.1 (2019-02-19)
48

5-
- Adjusting iife build
9+
- Adjusting iife build
610

711
## 5.1.0 (2019-01-07)
812

9-
- Removing the `scoped` prop from the `style` tags to allow for proper overwrite of styles.
13+
- Removing the `scoped` prop from the `style` tags to allow for proper overwrite of styles.
1014

1115
## 5.0.2 (2018-12-13)
1216

13-
- Fixing scrollbar issue on Windows in Chrome and Firefox.
17+
- Fixing scrollbar issue on Windows in Chrome and Firefox.
1418

1519
## 5.0.0 (2018-11-15)
1620

17-
- Adjusted the way that events were emitted (now all snake-case). [issue](https://github.com/promosis/vue-cookie-accept-decline/issues/10)
18-
- Added new way to postpone and hide the popup. [issue](https://github.com/promosis/vue-cookie-accept-decline/issues/11)
19-
- Fixed Windows scrollbar issue.
21+
- Adjusted the way that events were emitted (now all snake-case). [issue](https://github.com/promosis/vue-cookie-accept-decline/issues/10)
22+
- Added new way to postpone and hide the popup. [issue](https://github.com/promosis/vue-cookie-accept-decline/issues/11)
23+
- Fixed Windows scrollbar issue.
2024

2125
## 4.0.0 (2018-11-02)
2226

23-
- Adjusted build output - there will now be an additional `css` file that needs to be imported along with the `js`. This allows the `css` to be handled nicely by webpack or your app's build system.
27+
- Adjusted build output - there will now be an additional `css` file that needs to be imported along with the `js`. This allows the `css` to be handled nicely by webpack or your app's build system.
2428

2529
## 3.0.2 (2018-10-24)
2630

27-
- Fixed button bug on some older iPads.
31+
- Fixed button bug on some older iPads.
2832

2933
## 3.0.1 (2018-10-23)
3034

31-
- Added Codesandbox example. Updated readme.
35+
- Added Codesandbox example. Updated readme.
3236

3337
## 3.0.0 (2018-10-23)
3438

35-
- Added new default display option of `floating`.
36-
- Added new required `elementId` property to allow for multiple instances of `vue-cookie-accept-decline` on the same page.
37-
- Exposed a `removeCookie` method that can be used to clear the cookie the component creates. Also exposed the `init` method to allow devs to show the panel back to the user if they remove the cookie using `removeCookie`.
38-
- Updated readme to account for these new changes.
39-
- Added unit tests for the component.
39+
- Added new default display option of `floating`.
40+
- Added new required `elementId` property to allow for multiple instances of `vue-cookie-accept-decline` on the same page.
41+
- Exposed a `removeCookie` method that can be used to clear the cookie the component creates. Also exposed the `init` method to allow devs to show the panel back to the user if they remove the cookie using `removeCookie`.
42+
- Updated readme to account for these new changes.
43+
- Added unit tests for the component.
4044

4145
## 2.0.2 (2018-10-10)
4246

43-
- Decreased box-shadow opacity and adjusted border-top color.
47+
- Decreased box-shadow opacity and adjusted border-top color.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Or you can include it through the browser at the bottom of your page along with
3535
```html
3636
<!-- Please note if you're using the browser method you're going to want to adjust the version number as needed. -->
3737

38-
<script src="https://unpkg.com/vue-cookie-accept-decline@5.2.3/dist/vue-cookie-accept-decline.min.js"></script>
38+
<script src="https://unpkg.com/vue-cookie-accept-decline@5.4.0/dist/vue-cookie-accept-decline.min.js"></script>
3939

40-
<link rel="stylesheet" type="text/css" href="https://unpkg.com/vue-cookie-accept-decline@5.2.3/dist/vue-cookie-accept-decline.css">
40+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/vue-cookie-accept-decline@5.4.0/dist/vue-cookie-accept-decline.css">
4141
```
4242

4343
### About

dist/vue-cookie-accept-decline.esm.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ var script = {
4242
showPostponeButton: {
4343
type: Boolean,
4444
default: false
45+
},
46+
47+
forceCookies: {
48+
type: Boolean,
49+
default: false
4550
}
4651
},
4752
data: function data () {
@@ -78,6 +83,12 @@ var script = {
7883
this.$emit('status', visitedType);
7984
},
8085
checkLocalStorageFunctionality: function checkLocalStorageFunctionality () {
86+
87+
if (this.forceCookies) {
88+
this.supportsLocalStorage = false;
89+
return;
90+
}
91+
8192
// Check for availability of localStorage
8293
try {
8394
var test = '__vue-cookie-accept-decline-check-localStorage';

dist/vue-cookie-accept-decline.min.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ var VueCookieAcceptDecline = (function (exports) {
160160
showPostponeButton: {
161161
type: Boolean,
162162
default: false
163+
},
164+
165+
forceCookies: {
166+
type: Boolean,
167+
default: false
163168
}
164169
},
165170
data: function data () {
@@ -196,6 +201,12 @@ var VueCookieAcceptDecline = (function (exports) {
196201
this.$emit('status', visitedType);
197202
},
198203
checkLocalStorageFunctionality: function checkLocalStorageFunctionality () {
204+
205+
if (this.forceCookies) {
206+
this.supportsLocalStorage = false;
207+
return;
208+
}
209+
199210
// Check for availability of localStorage
200211
try {
201212
var test = '__vue-cookie-accept-decline-check-localStorage';

dist/vue-cookie-accept-decline.umd.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
showPostponeButton: {
4747
type: Boolean,
4848
default: false
49+
},
50+
51+
forceCookies: {
52+
type: Boolean,
53+
default: false
4954
}
5055
},
5156
data: function data () {
@@ -82,6 +87,12 @@
8287
this.$emit('status', visitedType);
8388
},
8489
checkLocalStorageFunctionality: function checkLocalStorageFunctionality () {
90+
91+
if (this.forceCookies) {
92+
this.supportsLocalStorage = false;
93+
return;
94+
}
95+
8596
// Check for availability of localStorage
8697
try {
8798
var test = '__vue-cookie-accept-decline-check-localStorage';

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><meta name=Description content="vue-cookie-accept-decline - Show a banner with text, a decline button, and an accept button on your page. Remembers selection using cookies. Emits an event with current selection and on creation. Good for GDPR requirements."><meta name=robots content=index,follow><title>vue-cookie-accept-decline | Promosis</title><link rel=stylesheet href=https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css integrity=sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO crossorigin=anonymous><link href=./main.e16ace9ce9d65b8199ba.css rel=stylesheet></head><body><div id=app></div><script src="https://www.google.com/recaptcha/api.js?render=explicit" async defer=defer></script><script type=text/javascript src=./vendor.282fe7638ef05f97e685.js></script><script type=text/javascript src=./main.6c5e20643714687a94a3.js></script></body></html>
1+
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><meta name=Description content="vue-cookie-accept-decline - Show a banner with text, a decline button, and an accept button on your page. Remembers selection using cookies. Emits an event with current selection and on creation. Good for GDPR requirements."><meta name=robots content=index,follow><title>vue-cookie-accept-decline | Promosis</title><link rel=stylesheet href=https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css integrity=sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO crossorigin=anonymous><link href=./main.df176098afec440f0d19.css rel=stylesheet></head><body><div id=app></div><script src="https://www.google.com/recaptcha/api.js?render=explicit" async defer=defer></script><script type=text/javascript src=./vendor.282fe7638ef05f97e685.js></script><script type=text/javascript src=./main.53d985e2bd9f1536db78.js></script></body></html>

docs/main.53d985e2bd9f1536db78.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)