Skip to content

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

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

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

Conversation

@shaejaz
Copy link
Copy Markdown
Contributor

@shaejaz shaejaz commented May 7, 2026

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
Copy link
Copy Markdown

codacy-production Bot commented May 7, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 1372 complexity · 0 duplication

Metric Results
Complexity 1372
Duplication 0

View in Codacy

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 13, 2026

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: 9b1892b

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