Skip to content

Commit 12c67e7

Browse files
authored
Merge pull request #99 from add2cal/dev
upgrade
2 parents 6074348 + 9bb144f commit 12c67e7

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Add to Calendar Button React Wrapper](https://github.com/add2cal/add-to-calendar-button-react/blob/main/assets/readme-header.png?raw=true)
22

33
![Version](https://img.shields.io/npm/v/add-to-calendar-button-react?style=for-the-badge&label=Version)
4-
[![Parent Script Version](https://img.shields.io/badge/Parent%20Script%20Version-v2.10.0-blue?style=for-the-badge)](https://github.com/add2cal/add-to-calendar-button)
4+
[![Parent Script Version](https://img.shields.io/badge/Parent%20Script%20Version-v2.11.0-blue?style=for-the-badge)](https://github.com/add2cal/add-to-calendar-button)
55
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/add-to-calendar-button-react?style=for-the-badge)](https://www.npmjs.com/package/add-to-calendar-button-react)
66
[![npm Installations](https://img.shields.io/npm/dt/add-to-calendar-button-react?label=npm%20Installations&style=for-the-badge)](https://www.npmjs.com/package/add-to-calendar-button-react)
77

@@ -181,6 +181,7 @@ You like this project? It would be awesome if you would support it, so it lives
181181

182182
## ⚡ Changelog
183183

184+
- v2.11 : ⚠️ Breaking: When setting the dates objects and respective attributes on the root level, root values always override the dates object (except for name in the multi-date case)
184185
- v2.10 : update to parent script v2.10; Hungarian localization, style updates, ics optimization
185186
- v2.9 : update to parent script v2.9; new style "simple" and better ics generation
186187
- v2.8 : update to parent script v2.8; Ukranian localization, time zone upgrade

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "add-to-calendar-button-react",
3-
"version": "2.10.0",
3+
"version": "2.11.0",
44
"engines": {
55
"node": ">=18.17.0",
66
"npm": ">=9.6.7"
@@ -93,6 +93,6 @@
9393
"react-dom": ">=18.0.0"
9494
},
9595
"dependencies": {
96-
"add-to-calendar-button": "^2.10.0"
96+
"add-to-calendar-button": "^2.11.0"
9797
}
9898
}

tests/unit/props_validation/value.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('props value validation', () => {
4141
render(<AddToCalendarButton {...(defaultProps as AddToCalendarButtonType)} debug startTime="14:00" endDate="2055-02-25" endTime="15:00" timeZone="Mars/FantasyCity" />);
4242
});
4343

44-
expect(spy).toHaveBeenCalledTimes(2); // 2 times, because the timeZones lib will also throw an error here.
44+
expect(spy).toHaveBeenCalledTimes(3); // 2 times, because the timeZones lib will also throw an error (2x) here.
4545
expect(Array.isArray(spy.mock.lastCall) ? spy.mock.lastCall.join() : '').toContain('invalid time zone given');
4646
});
4747
});

0 commit comments

Comments
 (0)