diff --git a/.circleci/config.yml b/.circleci/config.yml index 46fc7e845f..1b99dafb67 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,7 +51,10 @@ workflows: - unit tests: requires: - build - - legacy algoliasearch: + - legacy algoliasearch v3: + requires: + - build + - legacy algoliasearch v4: requires: - build - vue v3: @@ -97,7 +100,8 @@ workflows: - lint - unit tests - examples - - legacy algoliasearch + - legacy algoliasearch v3 + - legacy algoliasearch v4 - helper docs - e2e tests filters: @@ -202,7 +206,7 @@ jobs: name: Type Checking command: yarn run type-check - legacy algoliasearch: + legacy algoliasearch v3: <<: *defaults steps: - checkout @@ -221,6 +225,28 @@ jobs: name: Type Checking command: yarn run type-check:v3 + legacy algoliasearch v4: + <<: *defaults + resource_class: large + steps: + - checkout + - *attach_workspace + - *install_yarn_version + - *restore_yarn_cache + - *run_yarn_install + - run: + name: Update dependencies + command: | + ./scripts/legacy/downgrade-algoliasearch-v4.js + - run: + name: Unit & Integration tests + command: yarn run test:ci + - store_test_results: + path: junit/jest/ + - run: + name: Type Checking + command: yarn run type-check + vue v3: <<: *defaults steps: diff --git a/examples/js/calendar-widget/app.js b/examples/js/calendar-widget/app.js index 01437a1189..80405d59d6 100644 --- a/examples/js/calendar-widget/app.js +++ b/examples/js/calendar-widget/app.js @@ -1,5 +1,5 @@ /* global moment Calendar $ */ -import algoliasearch from 'algoliasearch/lite'; +import { liteClient as algoliasearch } from 'algoliasearch/lite'; import instantsearch from 'instantsearch.js'; import { connectRange } from 'instantsearch.js/es/connectors'; import { searchBox, hits } from 'instantsearch.js/es/widgets'; diff --git a/examples/js/calendar-widget/package.json b/examples/js/calendar-widget/package.json index d1c32cdd7f..accc375bcc 100644 --- a/examples/js/calendar-widget/package.json +++ b/examples/js/calendar-widget/package.json @@ -8,7 +8,7 @@ "website:examples": "BABEL_ENV=parcel parcel build index.html --public-url . --dist-dir=../../../website/examples/js/calendar-widget" }, "dependencies": { - "algoliasearch": "4.23.2", + "algoliasearch": "5.0.0", "instantsearch.js": "4.73.4" }, "devDependencies": { diff --git a/examples/js/e-commerce-umd/package.json b/examples/js/e-commerce-umd/package.json index 072c19649f..f7747c8ae0 100644 --- a/examples/js/e-commerce-umd/package.json +++ b/examples/js/e-commerce-umd/package.json @@ -9,7 +9,7 @@ }, "browserslist": "firefox 68, chrome 78, IE 11", "dependencies": { - "algoliasearch": "4.23.2", + "algoliasearch": "5.0.0", "instantsearch.js": "4.73.4" }, "devDependencies": { diff --git a/examples/js/e-commerce-umd/src/search.ts b/examples/js/e-commerce-umd/src/search.ts index ce30dffe36..32510323fe 100644 --- a/examples/js/e-commerce-umd/src/search.ts +++ b/examples/js/e-commerce-umd/src/search.ts @@ -1,4 +1,4 @@ -import algoliasearch from 'algoliasearch/lite'; +import { liteClient as algoliasearch } from 'algoliasearch/lite'; import getRouting from './routing'; import { diff --git a/examples/js/e-commerce/package.json b/examples/js/e-commerce/package.json index 9c9a8810e2..2061bcb671 100644 --- a/examples/js/e-commerce/package.json +++ b/examples/js/e-commerce/package.json @@ -9,7 +9,7 @@ }, "browserslist": "firefox 68, chrome 78, IE 11", "dependencies": { - "algoliasearch": "4.23.2", + "algoliasearch": "5.0.0", "instantsearch.js": "4.73.4" }, "devDependencies": { diff --git a/examples/js/e-commerce/src/search.ts b/examples/js/e-commerce/src/search.ts index 727b00a84d..dda821efbf 100644 --- a/examples/js/e-commerce/src/search.ts +++ b/examples/js/e-commerce/src/search.ts @@ -1,4 +1,4 @@ -import algoliasearch from 'algoliasearch/lite'; +import { liteClient as algoliasearch } from 'algoliasearch/lite'; import instantsearch from 'instantsearch.js'; import getRouting from './routing'; diff --git a/examples/js/getting-started/package.json b/examples/js/getting-started/package.json index 43df933194..ef1effdb6e 100644 --- a/examples/js/getting-started/package.json +++ b/examples/js/getting-started/package.json @@ -9,7 +9,7 @@ "lint:fix": "npm run lint -- --fix" }, "dependencies": { - "algoliasearch": "4.23.2", + "algoliasearch": "5.0.0", "instantsearch.css": "8.4.0", "instantsearch.js": "4.73.4" }, diff --git a/examples/js/getting-started/products.html b/examples/js/getting-started/products.html index ae6eb06e4a..7de3f6df41 100644 --- a/examples/js/getting-started/products.html +++ b/examples/js/getting-started/products.html @@ -35,6 +35,6 @@