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:
Martin Pool 2022-08-15 18:46:14 +02:00 committed by GitHub
commit b3d8d62be4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 6 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/ajax': major
---
First major release (no difference with 0.16.0)

View file

@ -91,9 +91,12 @@ There's a couple of "systems" in lion which have a JavaScript API. Examples are
<script type="module"> <script type="module">
import { ajax } from '@lion/ajax'; import { ajax } from '@lion/ajax';
ajax.get('data.json').then(response => { ajax
// most likely you will use response.data .fetch('data.json')
}); .then(response => response.json())
.then(data => {
// do something with the data
});
</script> </script>
``` ```

View file

@ -55,9 +55,12 @@ There's a couple of "systems" in lion which have a JavaScript API. Examples are
<script type="module"> <script type="module">
import { ajax } from '@lion/ajax'; import { ajax } from '@lion/ajax';
ajax.get('data.json').then(response => { ajax
// most likely you will use response.data .fetch('data.json')
}); .then(response => response.json())
.then(data => {
// do something with the data
});
</script> </script>
``` ```