Skip to content

refactor(core): add non-breaking core package#7018

Draft
shaejaz wants to merge 19 commits into
masterfrom
refactor/non-breaking-core
Draft

refactor(core): add non-breaking core package#7018
shaejaz wants to merge 19 commits into
masterfrom
refactor/non-breaking-core

Conversation

@shaejaz

@shaejaz shaejaz commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Non-breaking consolidation of shared code into instantsearch-core so React, Vue, and the JS flavor depend on a single source of truth instead of reaching into instantsearch.js.

Changes

  • Chat moved to core. lib/chat/ (Chat class, types, tool helpers, openChat / isChatBusy) now lives in instantsearch-core; connector and tests moved alongside it. JS / React / Vue widgets import from instantsearch-core.
  • InstantSearch class moved to core. instantsearch.js re-exports it for backward compatibility; react-instantsearch-core consumes it directly from core via a named InstantSearch export.
  • New instantsearch factory export from core. Vue swaps import instantsearch from 'instantsearch.js/es'import { instantsearch } from 'instantsearch-core' across 5 files (component, SSR mixin, 3 tests).
  • instantsearch-ui-components re-exports removed. Consumers import UI primitives from instantsearch-ui-components directly instead of through instantsearch.js.
  • Dropped instantsearch.js as a runtime dependency from react-instantsearch, react-instantsearch-core, and react-instantsearch-router-nextjs. Vue keeps it as an optional peer (only for EXPERIMENTAL_connectConfigureRelatedItems).
  • Inlined the 3 RefinementListWidgetParams fields React actually uses (searchable, searchablePlaceholder, searchableSelectOnSubmit) rather than re-exporting a JS-widget-shaped type.

@codacy-production

codacy-production Bot commented May 7, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 1500 complexity

Metric Results
Complexity 1500

View in Codacy

TIP This summary will be updated as you push new changes.

@pkg-pr-new

pkg-pr-new Bot commented May 13, 2026

Copy link
Copy Markdown
More templates

algoliasearch-helper

npm i https://pkg.pr.new/algolia/instantsearch/algoliasearch-helper@7018

instantsearch-ui-components

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch-ui-components@7018

instantsearch.css

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch.css@7018

instantsearch.js

npm i https://pkg.pr.new/algolia/instantsearch/instantsearch.js@7018

react-instantsearch

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch@7018

react-instantsearch-core

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-core@7018

react-instantsearch-nextjs

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-nextjs@7018

react-instantsearch-router-nextjs

npm i https://pkg.pr.new/algolia/instantsearch/react-instantsearch-router-nextjs@7018

vue-instantsearch

npm i https://pkg.pr.new/algolia/instantsearch/vue-instantsearch@7018

commit: b8819e5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant