Skip to content

Commit

Permalink
Prepare v2.4.0 (#196)
Browse files Browse the repository at this point in the history
Bump package.json to v2.4.0 and search-headless to v2.5.0.

J=none
TEST=auto

Update tests to run on Node 16 and 18 and drop 14 since `tsup` doesn't seem to support 14.
  • Loading branch information
nmanu1 authored Dec 8, 2023
1 parent cb6228b commit 8530bf1
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 24 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push, pull_request]
jobs:
call_run_tests:
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1
with:
node_matrix: '["16.x", "18.x", "20.x"]'

# It's necessary to use v12 of the react-testing-library since v13 was updated to only support react 18
call_run_tests-react-17:
Expand All @@ -13,12 +15,12 @@ jobs:
build_script: |
npm i -D react@17 react-dom@17 @types/react@17 @testing-library/react@12
npm run build
node_matrix: '["16.x"]'
node_matrix: '["16.x", "18.x", "20.x"]'

call_run_tests-react-16:
uses: yext/slapshot-reusable-workflows/.github/workflows/run_tests.yml@v1
with:
build_script: |
npm i -D react@16.14 react-dom@16.14 @types/react@16.14 @testing-library/react@12
npm run build
node_matrix: '["16.x"]'
node_matrix: '["16.x", "18.x", "20.x"]'
4 changes: 2 additions & 2 deletions THIRD-PARTY-NOTICES
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ SOFTWARE.

The following NPM package may be included in this product:

- @yext/search-core@2.5.0-beta.3
- @yext/search-core@2.5.0

This package contains the following license and notice below:

Expand Down Expand Up @@ -106,7 +106,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The following NPM package may be included in this product:

- @yext/search-headless@2.5.0-beta.3
- @yext/search-headless@2.5.0

This package contains the following license and notice below:

Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/search-headless-react",
"version": "2.4.0-beta.3",
"version": "2.4.0",
"description": "The official React UI Bindings layer for Search Headless",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -38,7 +38,7 @@
"generate-notices": "generate-license-file --input package.json --output THIRD-PARTY-NOTICES --overwrite"
},
"dependencies": {
"@yext/search-headless": "^2.5.0-beta.3",
"@yext/search-headless": "^2.5.0",
"use-sync-external-store": "^1.1.0"
},
"devDependencies": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/useSearchUtilities.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SearchHeadless } from '@yext/search-headless';
import React, { useContext } from 'react';
import { useContext } from 'react';
import { SearchHeadlessContext } from './SearchHeadlessContext';

export type SearchUtilities = SearchHeadless['utilities'];
Expand Down

0 comments on commit 8530bf1

Please sign in to comment.