@financial-times/n-myft-ui 30.4.5 → 31.0.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.
@@ -8,7 +8,7 @@ references:
8
8
  - image: cimg/node:<< parameters.node-version >>-browsers
9
9
  parameters:
10
10
  node-version:
11
- default: "16.14"
11
+ default: "18.18"
12
12
  type: string
13
13
 
14
14
  workspace_root: &workspace_root ~/project
@@ -71,8 +71,8 @@ jobs:
71
71
  - run:
72
72
  name: Checkout next-ci-shared-helpers
73
73
  command: git clone --depth 1
74
- git@github.com:Financial-Times/next-ci-shared-helpers.git
75
- .circleci/shared-helpers
74
+ git@github.com:Financial-Times/next-ci-shared-helpers.git --branch
75
+ unpin-heroku .circleci/shared-helpers
76
76
  - *restore_npm_cache
77
77
  - run:
78
78
  name: Install project dependencies
@@ -145,7 +145,7 @@ workflows:
145
145
  name: build-v<< matrix.node-version >>
146
146
  matrix:
147
147
  parameters:
148
- node-version: ["16.14"]
148
+ node-version: [ "16.20", "18.18" ]
149
149
  - test:
150
150
  filters:
151
151
  <<: *filters_ignore_tags
@@ -154,12 +154,12 @@ workflows:
154
154
  name: test-v<< matrix.node-version >>
155
155
  matrix:
156
156
  parameters:
157
- node-version: ["16.14"]
157
+ node-version: [ "16.20", "18.18" ]
158
158
  - deploy:
159
159
  filters:
160
160
  <<: *filters_only_main
161
161
  requires:
162
- - build-v16.14
162
+ - build-v18.18
163
163
  build-test-publish:
164
164
  jobs:
165
165
  - build:
@@ -169,7 +169,7 @@ workflows:
169
169
  name: build-v<< matrix.node-version >>
170
170
  matrix:
171
171
  parameters:
172
- node-version: ["16.14"]
172
+ node-version: [ "16.20", "18.18" ]
173
173
  - test:
174
174
  filters:
175
175
  <<: *filters_version_tag
@@ -178,13 +178,13 @@ workflows:
178
178
  name: test-v<< matrix.node-version >>
179
179
  matrix:
180
180
  parameters:
181
- node-version: ["16.14"]
181
+ node-version: [ "16.20", "18.18" ]
182
182
  - publish:
183
183
  context: npm-publish-token
184
184
  filters:
185
185
  <<: *filters_version_tag
186
186
  requires:
187
- - test-v16.14
187
+ - test-v18.18
188
188
 
189
189
  nightly:
190
190
  triggers:
@@ -198,7 +198,7 @@ workflows:
198
198
  name: build-v<< matrix.node-version >>
199
199
  matrix:
200
200
  parameters:
201
- node-version: ["16.14"]
201
+ node-version: [ "16.20", "18.18" ]
202
202
  - test:
203
203
  requires:
204
204
  - build-v<< matrix.node-version >>
@@ -206,7 +206,7 @@ workflows:
206
206
  name: test-v<< matrix.node-version >>
207
207
  matrix:
208
208
  parameters:
209
- node-version: ["16.14"]
209
+ node-version: [ "16.20", "18.18" ]
210
210
 
211
211
  notify:
212
212
  webhooks:
@@ -13,9 +13,9 @@ set -eu -o pipefail
13
13
  # HELPER COMMANDS
14
14
 
15
15
  # Install Heroku CLI
16
- wget https://cli-assets.heroku.com/heroku-v7.30.1/heroku-v7.30.1-linux-x64.tar.gz -O heroku-linux-amd64.tar.gz
16
+ wget https://cli-assets.heroku.com/channels/stable/heroku-linux-x64.tar.gz
17
17
  sudo mkdir -p /usr/local/lib /usr/local/bin
18
- sudo tar -xzf heroku-linux-amd64.tar.gz -C /usr/local/lib
18
+ sudo tar -xzf heroku-linux-x64.tar.gz -C /usr/local/lib
19
19
  sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
20
20
 
21
21
  # Output heroku-cli version so user can see in
package/Makefile CHANGED
@@ -4,6 +4,12 @@ node_modules/@financial-times/n-gage/index.mk:
4
4
 
5
5
  -include node_modules/@financial-times/n-gage/index.mk
6
6
 
7
+ NODE_VERSION := $(shell node --version)
8
+ NODE_MAJOR_VERSION := $(shell echo $(NODE_VERSION) | cut -c2-3)
9
+ ifeq ($(NODE_MAJOR_VERSION),18)
10
+ NODE_OPTS := "--openssl-legacy-provider --dns-result-order=ipv4first"
11
+ endif
12
+
7
13
  run:
8
14
  node _test-server/app
9
15
 
@@ -22,10 +28,10 @@ static-demo: demo-build
22
28
  @scripts/make-static-demo.sh
23
29
 
24
30
  test-build:
25
- webpack --mode=development
31
+ @NODE_OPTIONS=$(NODE_OPTS) webpack --mode=development
26
32
 
27
33
  test-unit:
28
- node_modules/karma/bin/karma start
34
+ @NODE_OPTIONS=$(NODE_OPTS) karma start
29
35
 
30
36
  a11y: demo-build
31
37
  @node .pa11yci.js