Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare v2.4.0 #196

Merged
merged 4 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"]'

# 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"]'

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"]'
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