storyblok-svelte
isomorphic-fetch
storyblok-svelte | isomorphic-fetch | |
---|---|---|
7 | 9 | |
83 | 6,961 | |
- | - | |
9.4 | 0.0 | |
1 day ago | about 1 year ago | |
Svelte | JavaScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
storyblok-svelte
-
๐ Fresh Storyblok SDK releases, plus new Canada and Australia regions ๐
Svelte SDK - v4.0.0
-
Storyblok Svelte SDK ready for 4.0 ๐
We are super excited to announce that we have released our Svelte SDK v3.1.0 with support for Svelte 4.
-
Cracking the Code: An Inspiring Discussion on Open Source with Ana at Girl Code Coffee Chat #8
We at Storyblok have also already dipped our toes into the world of open source by developing SDKs for to integrate Storyblok with different frontend technologies a little more conveniently. While of course there is the storyblok-js-client, which you can use to implement Storyblok your project, the DevRel team has started to create and maintain different SDKs like the one for Gatsby or Svelte to make it even easier to work with your favorite Technology and Storyblok.
-
Storyblok/Svelte v3.0.0. is here ๐
We're excited to announce the release of our latest SvelteKit SDK version, v3.0.0!
-
Storyblok Gatsby SDK โ now with TypeScript support ๐
During this summer, we have been working on to support TypeScript in our SDK ecosystem. We have TypeScript for @storyblok/js SDK, @storyblok/svelte SDK, @storyblok/vue & @storyblok/vue-2 SDK, @storyblok/react SDK... and finally, gatsby-source-storyblok (Gatsby SDK) also supports TypeScript๐
-
Storyblok/Svelte - now with Typescript support ๐
Now, when using storyblok/svelte in your own project, you should now get auto-completion, static typing & warnings in case something doesnโt add up ( - at a lower level even, if you are not using Typescript yourself! ๐)
-
Announcing @storyblok/svelte
We are absolutely thrilled to announce the release of @storyblok/svelte! From now on, you can integrate Storyblok with your Svelte project through 3 simple steps. No need to make framework-specific adjustments after using the @storyblok/js library - even faster, easier and - did we say faster? - than before.
isomorphic-fetch
-
Storyblok/Svelte v3.0.0. is here ๐
This new version uses the latest version of our js-client - which means we are finally removing Axios in favor of native Fetch API (polyfillable via isomorphic-fetch).
-
Use fetch instead of ajax with redux-observable
In redux-observable is it possible to use isomporphic-fetch instead of Rx.DOM.ajax?
-
Storyblok Nuxt 3 news ๐
The SDK now uses the Fetch API under the hood. If your environment doesn't support it, install a polyfill like isomorphic-fetch. More information can be found on the storyblok-js-client README.
-
Storyblok Gatsby SDK is free from axiosโจ
You don't need to install extra isomorphic-fetch into your Storyblok & Gatsby applications.
-
Stop polyfilling fetch in your npm package
You can get around some of the above issues using a library called isomorphic-fetch, but not all of them. It also hasnโt been updated since 2015, and is locked on v2.x of node-fetch (whereas v3 has been out for some time now)
-
fetch patch request is not allowed
I have been happily using isomorphic-fetch till I needed to send PATCH method to the server.
-
React server-side fetch (asynchronous rendering)
import React from 'react';export default class RemoteText extends React.PureComponent { constructor(props) { super(props); this.state = {text: null}; fetch(props.src).then(res => res.text()).then(text => { this.setState({text}); }) } render() { if(this.state.text) { return {this.state.text}; } return null; }} Even if I use isomorphic-fetch, I get this warning:
- What is the difference between isomorphic-fetch and fetch?
-
Centralized/modularized Axios implementation?
Not to play devil's advocate or anything, but in all fairness, fetch can use an AbortController to be cancellable. Also, it/they can easily be supported in older browsers through a polyfill, which is substantially lighter on bundle size than Axios, esp for newer browsers where the polyfills adds no new code. Short digression: I love isomorphic-fetch because it polyfills fetch in both old browsers and NodeJS, meaning I only need to remember one simple API (fetch) for network calls regardless of the environment. I'd much rather have to learn only one stable, native API than add on additional third party APIs that can change over time or require additional plugins to make it work (e.g. moxios).
What are some alternatives?
storyblok-js - JavaScript SDK to connect Storyblok with your favourite framework that we don't have an official SDK for.
axios - Promise based HTTP client for the browser and node.js
storyblok-vue-2 - Vue.js 2 SDK for Storyblok CMS
node-fetch - A light-weight module that brings the Fetch API to Node.js
storyblok-svelte-boilerplate - Code of the tutorial: Add a headless CMS with live preview to Svelte and Sapper in 5 minutes
http-proxy - A full-featured http proxy for node.js
storyblok-react - React SDK for Storyblok CMS
superagent - Ajax for Node.js and browsers (JS HTTP client). Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.
gatsby-source-storyblok - Gatsby source plugin for building websites using the Storyblok headless CMS as a data source.
Nock - HTTP server mocking and expectations library for Node.js
storyblok-vue - Vue.js SDK for Storyblok CMS
request - ๐๐พ Simplified HTTP request client.