@financial-times/n-myft-ui 33.1.1-alpha.4 → 34.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,12 @@ orbs:
4
4
  executors:
5
5
  node:
6
6
  docker:
7
- - image: cimg/node:18.17-browsers
7
+ - image: cimg/node:18.16-browsers
8
+ working_directory: /home/circleci/project/node_workspace
9
+ node16_20-browsers:
10
+ docker:
11
+ - image: cimg/node:16.20-browsers
12
+ working_directory: /home/circleci/project/node16_workspace
8
13
  jobs:
9
14
  deploy-gh-pages:
10
15
  docker:
@@ -58,6 +63,7 @@ workflows:
58
63
  parameters:
59
64
  executor:
60
65
  - node
66
+ - node16_20-browsers
61
67
  filters:
62
68
  tags:
63
69
  only: /^v\d+\.\d+\.\d+(-.+)?/
@@ -69,6 +75,7 @@ workflows:
69
75
  parameters:
70
76
  executor:
71
77
  - node
78
+ - node16_20-browsers
72
79
  filters:
73
80
  tags:
74
81
  only: /^v\d+\.\d+\.\d+(-.+)?/
@@ -80,6 +87,7 @@ workflows:
80
87
  parameters:
81
88
  executor:
82
89
  - node
90
+ - node16_20-browsers
83
91
  filters:
84
92
  tags:
85
93
  only: /^v\d+\.\d+\.\d+(-.+)?/
@@ -114,6 +122,7 @@ workflows:
114
122
  parameters:
115
123
  executor:
116
124
  - node
125
+ - node16_20-browsers
117
126
  - tool-kit/build:
118
127
  name: tool-kit/build-<< matrix.executor >>
119
128
  requires:
@@ -122,6 +131,7 @@ workflows:
122
131
  parameters:
123
132
  executor:
124
133
  - node
134
+ - node16_20-browsers
125
135
  - tool-kit/test:
126
136
  name: tool-kit/test-<< matrix.executor >>
127
137
  requires:
@@ -130,3 +140,4 @@ workflows:
130
140
  parameters:
131
141
  executor:
132
142
  - node
143
+ - node16_20-browsers
package/.pa11yci.js CHANGED
@@ -18,6 +18,7 @@ const urls = [
18
18
  ];
19
19
 
20
20
  const config = {
21
+ exitCode: 0,
21
22
  defaults: {
22
23
  headers: {
23
24
  'Cookie': 'next-flags=ads:off,cookieMessage:off; secure=true'
package/.toolkitrc.yml CHANGED
@@ -22,10 +22,11 @@ hooks:
22
22
  - RunPa11yCi
23
23
  options:
24
24
  "@dotcom-tool-kit/circleci":
25
- nodeVersion: "18.17-browsers"
25
+ nodeVersion:
26
+ - '18.16-browsers'
27
+ - '16.20-browsers'
26
28
  "@dotcom-tool-kit/eslint": {
27
29
  files: "{,!(public)/**/}*.js"
28
30
  }
29
- '@dotcom-tool-kit/vault':
30
- team: next
31
- app: n-myft-ui
31
+ '@dotcom-tool-kit/doppler':
32
+ project: n-myft-ui
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-myft-ui",
4
- "version": "91ee5ff8640103b67627901115e219f2cf07fc04",
5
- "tag": "v33.1.1-alpha.4"
4
+ "version": "520d67f507b714cb2a488922cdf6573bc738800d",
5
+ "tag": "v34.0.0"
6
6
  }
@@ -144,20 +144,6 @@ const getAlertsPreferences = async ({ event, preferencesModal }) => {
144
144
  });
145
145
 
146
146
  preferencesList.innerHTML = getAlertsPreferenceText(addedTextBuffer);
147
-
148
- try {
149
- // We need the service worker registration to check for a subscription
150
- const serviceWorkerRegistration = await navigator.serviceWorker.ready;
151
- const subscription = await serviceWorkerRegistration.pushManager.getSubscription();
152
- if (subscription) {
153
- addedTextBuffer.push('browser');
154
- }
155
- } catch (error) {
156
- // eslint-disable-next-line no-console
157
- console.warn('There was an error fetching the browser notification preferences', error);
158
- }
159
-
160
- preferencesList.innerHTML = getAlertsPreferenceText(addedTextBuffer);
161
147
  };
162
148
 
163
149
  const setCheckboxForAlertConcept = ({ event, preferencesModal }) => {
package/karma.conf.js CHANGED
@@ -1,5 +1,7 @@
1
1
  // Karma configuration
2
2
  // Generated on Fri Apr 18 2014 18:19:03 GMT+0100 (BST)
3
+ const majorVersion = process.version.split('.')[0].slice(1);
4
+ const port = majorVersion === '18' ? 9877 : 9876;
3
5
  module.exports = function (karma) {
4
6
 
5
7
 
@@ -82,7 +84,7 @@ module.exports = function (karma) {
82
84
 
83
85
 
84
86
  // web server port
85
- port: 9876,
87
+ port: port,
86
88
 
87
89
 
88
90
  // enable / disable colors in the output (reporters and logs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-myft-ui",
3
- "version": "33.1.1-alpha.4",
3
+ "version": "34.0.0",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  "imports-loader": "0.8.0",
72
72
  "inject-loader": "^4.0.1",
73
73
  "karma": "4.4.1",
74
- "karma-browserstack-launcher": "1.6.0",
74
+ "karma-browserstack-launcher": "^1.6.0",
75
75
  "karma-chai": "^0.1.0",
76
76
  "karma-chrome-launcher": "3.2.0",
77
77
  "karma-firefox-launcher": "^1.0.0",