-
Notifications
You must be signed in to change notification settings - Fork 215
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
Deno Support #1402
Comments
We have not had any requests in the past for Deno support, so have not yet looked into any quick wins. There's a couple options I see:
I'd love to hear when you try these options out |
Thank you for your quick response! import algoliasearch from 'https://esm.sh/algoliasearch@4.13.0';
import "https://deno.land/x/xhr@0.1.0/mod.ts";
const client = algoliasearch(APP_ID, API_KEY);
const index = client.initIndex('my_index');
index.saveObject(object); |
@Haroenv maybe you could drop XMLHttpRequest and use This is a problem on Cloudflare workers too. |
You can use the fetch requester since a couple years, sorry for not closing this issue. import algoliasearch from 'algoliasearch';
import { createFetchRequester } from '@algolia/requester-fetch';
const client = algoliasearch('', '', { requester: createFetchRequester() }) |
Are there any plans for supporting Deno runtime?
It's already possible to import algoliasearch via esm.sh and skypack, however it seems that using XMLHttpRequest makes it impossible.
Thanks!
The text was updated successfully, but these errors were encountered: