Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/search

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/search - npm Package Versions

124

0.19.10

Diff

Changelog

Source

0.19.10 (2022-04-04)

Bug fixes

Make sure search matches are highlighted when scrolling new content into view.

marijn
published 0.19.9 •

Changelog

Source

0.19.9 (2022-03-03)

New features

The selection-matching extension now accepts a wholeWords option that makes it only highlight matches that span a whole word. Add SearchQuery.getCursor

The SearchQuery class now has a getCursor method that allows external code to create a cursor for the query.

marijn
published 0.19.8 •

Changelog

Source

0.19.8 (2022-02-14)

Bug fixes

Fix a bug that caused the search panel to start open when configuring a state with the search() extension.

marijn
published 0.19.7 •

Changelog

Source

0.19.7 (2022-02-14)

Breaking changes

searchConfig is deprecated in favor of search (but will exist until next major release).

New features

The new search function is now used to enable and configure the search extension.

marijn
published 0.19.6 •

Changelog

Source

0.19.6 (2022-01-27)

Bug fixes

Make selectNextOccurrence scroll the newly selected range into view.

marijn
published 0.19.5 •

Changelog

Source

0.19.5 (2021-12-16)

Breaking changes

The search option matchCase was renamed to caseSensitive (the old name will continue to work until the next breaking release).

Bug fixes

openSearchPanel will now update the search query to the current selection even if the panel was already open.

New features

Client code can now pass a custom search panel creation function in the search configuration.

The getSearchQuery function and setSearchQuery effect can now be used to inspect or change the current search query.

marijn
published 0.19.4 •

Changelog

Source

0.19.4 (2021-12-02)

Bug fixes

The search panel will no longer show the replace interface when the editor is read-only.

marijn
published 0.19.3 •

Changelog

Source

0.19.3 (2021-11-22)

Bug fixes

Add userEvent annotations to search and replace transactions.

Make sure the editor handles keys bound to findNext/findPrevious even when there are no matches, to avoid the browser's search interrupting users.

New features

Add a Symbol.iterator property to the cursor types, so that they can be used with for/of.

marijn
published 0.19.2 •

Changelog

Source

0.19.2 (2021-09-16)

Bug fixes

selectNextOccurrence will now only select partial words if the current main selection hold a partial word.

Explicitly set the button's type to prevent the browser from submitting forms wrapped around the editor.

marijn
published 0.19.1 •

Changelog

Source

0.19.1 (2021-09-06)

Bug fixes

Make highlightSelectionMatches not produce overlapping decorations, since those tend to just get unreadable.

Make sure any existing search text is selected when opening the search panel. Add search config option to not match case when search panel is opened (#4)

New features

The searchConfig function now takes a matchCase option that controls whether the search panel starts in case-sensitive mode.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc