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

Support ES module import #351

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Support ES module import #351

merged 1 commit into from
Feb 22, 2024

Conversation

plurch
Copy link
Contributor

@plurch plurch commented Feb 22, 2024

Enables importing like this:

import * as usearch from 'usearch'

https://nodejs.org/api/packages.html#conditional-exports

Without this fix I was seeing this error message:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in .../node_modules/usearch/package.json

Enables importing like this:

`import * as usearch from 'usearch'`

https://nodejs.org/api/packages.html#conditional-exports
@ashvardanian ashvardanian changed the base branch from main to main-dev February 22, 2024 18:02
@ashvardanian ashvardanian merged commit d5091ac into unum-cloud:main-dev Feb 22, 2024
@plurch plurch deleted the es-module-import branch February 22, 2024 19:37
ashvardanian pushed a commit that referenced this pull request Feb 27, 2024
## [2.9.1](v2.9.0...v2.9.1) (2024-02-27)

### Fix

* Explicit narrowing conversions ([25436ae](25436ae))
* Match enum values between C and C# ([4a69086](4a69086))
* Recovering quantization settings in `load` ([fd53619](fd53619)), closes [#353](#353) [#343](#343)
* wildcard ES module imports (#351) ([d5091ac](d5091ac)), closes [#351](#351)

### Improve

* Report missing arguments in debug builds ([ce5bbaf](ce5bbaf))
* Test reopening index ([24be07b](24be07b))

### Make

* Clean-up the C# dir ([70d646c](70d646c))
* invalid C++17 Clang arg ([23684aa](23684aa))
@ashvardanian
Copy link
Contributor

🎉 This PR is included in version 2.9.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants