Merge pull request #1746 from ing-bank/chore/bump-ajax-v1
chore(ajax): bump to major version 1.0.0
This commit is contained in:
commit
b3d8d62be4
3 changed files with 17 additions and 6 deletions
5
.changeset/sweet-bags-listen.md
Normal file
5
.changeset/sweet-bags-listen.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@lion/ajax': major
|
||||
---
|
||||
|
||||
First major release (no difference with 0.16.0)
|
||||
|
|
@ -91,8 +91,11 @@ There's a couple of "systems" in lion which have a JavaScript API. Examples are
|
|||
<script type="module">
|
||||
import { ajax } from '@lion/ajax';
|
||||
|
||||
ajax.get('data.json').then(response => {
|
||||
// most likely you will use response.data
|
||||
ajax
|
||||
.fetch('data.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
// do something with the data
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
|
|
|||
|
|
@ -55,8 +55,11 @@ There's a couple of "systems" in lion which have a JavaScript API. Examples are
|
|||
<script type="module">
|
||||
import { ajax } from '@lion/ajax';
|
||||
|
||||
ajax.get('data.json').then(response => {
|
||||
// most likely you will use response.data
|
||||
ajax
|
||||
.fetch('data.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
// do something with the data
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue