@recras/online-booking-js 2.0.6 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ jobs:
11
11
  - uses: actions/checkout@v3
12
12
  - uses: actions/setup-node@v3
13
13
  with:
14
- node-version: 16
14
+ node-version: 24
15
15
  - run: npm ci
16
16
  - run: npm test
17
17
 
@@ -22,7 +22,7 @@ jobs:
22
22
  - uses: actions/checkout@v3
23
23
  - uses: actions/setup-node@v3
24
24
  with:
25
- node-version: 16
25
+ node-version: 24
26
26
  registry-url: https://registry.npmjs.org/
27
27
  - run: npm ci
28
28
  - run: npm run build
package/.jshintrc CHANGED
@@ -9,7 +9,7 @@
9
9
  // Suppress warnings about == null comparisons.
10
10
  "eqnull": true,
11
11
 
12
- "esversion": 6,
12
+ "esversion": 11,
13
13
 
14
14
  "globals": {
15
15
  "console": true,
package/README.md CHANGED
@@ -1,20 +1,20 @@
1
- [![Build Status](https://travis-ci.org/Recras/online-booking-js.svg?branch=master)](https://travis-ci.org/Recras/online-booking-js)
1
+ # Recras Integration Library
2
+ Version: 2.1.0
2
3
 
3
- # Recras JS Integration Library
4
- Version: 2.0.6
5
-
6
- JS library for easy online booking, contact form, and voucher integration
4
+ ## To start
5
+ **Note:** This library has been deprecated in favour of integrating book processes. You can still use it, but there not be any feature updates. Other updates are unlikely. Usage of this library may not work for every Recras instance.
7
6
 
7
+ This JavaScript library allows for easy integration of online booking of packages, contact forms, and selling product vouchers. You **cannot** use this library to integrate book processes or for selling credit vouchers.
8
8
 
9
9
  ## Getting started
10
- ### Online booking
10
+ ### Online booking of packages
11
11
  In your HTML document,
12
12
  1. include the `dist/onlinebooking.js` script
13
13
  1. add an element where you want the integration to appear
14
- 1. give the element a unique ID, i.e. `< div id="recras-onlinebooking"></div>`
14
+ 1. give the element a unique ID, i.e. `<div id="recras-onlinebooking"></div>`
15
15
  1. initialize the script like this:
16
16
  ```
17
- var options = new RecrasOptions({
17
+ const options = new RecrasOptions({
18
18
  recras_hostname: 'demo.recras.nl', // Required
19
19
  element: document.getElementById('recras-onlinebooking'), // Required
20
20
  });
@@ -28,7 +28,7 @@ In your HTML document,
28
28
  1. give the element a unique ID, i.e. `<div id="recras-vouchers"></div>`
29
29
  1. initialize the script like this:
30
30
  ```
31
- var options = new RecrasOptions({
31
+ const options = new RecrasOptions({
32
32
  recras_hostname: 'demo.recras.nl', // Required
33
33
  element: document.getElementById('recras-vouchers'), // Required
34
34
  });
@@ -43,12 +43,12 @@ In your HTML document,
43
43
  1. give the element a unique ID, i.e. `<div id="recras-contactform"></div>`
44
44
  1. initialize the script like this:
45
45
  ```
46
- var options = new RecrasOptions({
46
+ const options = new RecrasOptions({
47
47
  recras_hostname: 'demo.recras.nl', // Required
48
48
  element: document.getElementById('recras-contactform'), // Required
49
49
  form_id: 4, // Required
50
50
  });
51
- var form = new RecrasContactForm(options);
51
+ const form = new RecrasContactForm(options);
52
52
  form.showForm();
53
53
  ```
54
54
  See the section Options below for an overview of all options
@@ -103,9 +103,7 @@ The library provides a bit of styling to make it look okay straight from the box
103
103
 
104
104
 
105
105
  ## Browser support
106
- This library uses various modern techniques that are unsupported in Internet Explorer, and/or old Edge, and/or old Safari. If you care about supporting old browsers, a polyfill should be loaded into your website. We recommend loading the following [Polyfill.io](https://polyfill.io/v3/) script: `https://polyfill.io/v3/polyfill.min.js?features=default,fetch,Promise,Array.prototype.includes,RegExp.prototype.flags`
107
-
108
- In modern browsers, this is only a very small file causing little overhead.
106
+ This library does not support old browsers (Internet Explorer, pre-Blink Edge, old Safari versions).
109
107
 
110
108
 
111
109
  ## Events
package/changelog.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.0 (2026-01-05)
4
+ * Improve anti-spam measures
5
+
6
+ ## 2.0.9 (2024-12-11)
7
+ * Previous version was published without dist files
8
+
9
+ ## 2.0.8 (2024-12-10)
10
+ * Changelog & package.json update that was forgotten in 2.0.7
11
+
12
+ ## 2.0.7 (2024-12-10)
13
+ * Remove Recras instance hostname validation
14
+ * Remove explicit http/https
15
+
3
16
  ## 2.0.6 (2023-02-27)
4
17
  * Fetch available dates until the end of the month, to prevent half filled months in calendar
5
18
 
@@ -182,7 +195,7 @@
182
195
  * Remove the time-preview for lines that have no specified time in the programme
183
196
 
184
197
  ## 0.17.9 (2019-05-29)
185
- * Fix filtering of invalid tags. For IE compatibility, a polyfill for `RegExp` flags should be loaded (i.e. https://cdn.polyfill.io/v2/polyfill.min.js?features=RegExp.prototype.flags)
198
+ * Fix filtering of invalid tags. For IE compatibility, a polyfill for `RegExp` flags should be loaded
186
199
 
187
200
  ## 0.17.8 (2019-05-22)
188
201
  * Fix availability check for packages with "booking size" in some edge cases