@faststore/api 1.3.23 → 1.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +56 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 1.3.27 (2021-12-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add Banner Components exportation ([#1072](https://github.com/vtex/faststore/issues/1072)) ([4024104](https://github.com/vtex/faststore/commit/4024104f9804c8762037f03d986a4334af819b3c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 1.3.26 (2021-12-09)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @faststore/api
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 1.3.25 (2021-12-09)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @faststore/api
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## 1.3.24 (2021-12-09)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* fix UI storybook imports ([#1069](https://github.com/vtex/faststore/issues/1069)) ([e4a2402](https://github.com/vtex/faststore/commit/e4a2402235c60488fde7021bf3200d967af3cb83))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## 1.3.23 (2021-12-09)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @faststore/api
|
package/README.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://faststore.dev">
|
|
3
|
+
<img alt="Faststore" src="../ui/static/logo.png" width="60" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
<h1 align="center">
|
|
7
|
+
FastStore API
|
|
8
|
+
</h1>
|
|
9
|
+
<p align="center">
|
|
10
|
+
<strong>
|
|
11
|
+
Connect to your favorite ecommerce platform
|
|
12
|
+
</strong>
|
|
13
|
+
</p>
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
<div style="display: flex; justify-content: center; width: 100%">
|
|
16
|
+
<a href="https://www.npmjs.com/package/@faststore/api" style="padding: 0px 2px 0px 0px">
|
|
17
|
+
<img src="https://badge.fury.io/js/%40faststore%2Fui.svg" />
|
|
18
|
+
</a>
|
|
19
|
+
<a href="https://bundlephobia.com/package/@faststore/api" style="padding: 0px 0px 0px 2px">
|
|
20
|
+
<img src="https://badgen.net/bundlephobia/dependency-count/@faststore/api" />
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
From the command line in your project directory, run yarn add `@faststore/api`.
|
|
27
|
+
|
|
28
|
+
```cmd
|
|
29
|
+
yarn add @faststore/api
|
|
30
|
+
```
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
With servers like express:
|
|
34
|
+
```ts
|
|
35
|
+
import { execute } from 'graphql'
|
|
36
|
+
import { getSchema } from '@faststore/api'
|
|
37
|
+
|
|
38
|
+
import express from 'express'
|
|
39
|
+
|
|
40
|
+
const app = express()
|
|
41
|
+
|
|
42
|
+
app.get('/graphql', async (req, res) => {
|
|
43
|
+
const { query, operationName, variables } = req.body
|
|
44
|
+
|
|
45
|
+
const result = await execute({
|
|
46
|
+
schema: await getSchema(),
|
|
47
|
+
variableValues: variables,
|
|
48
|
+
operationName
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
res.status(200)
|
|
52
|
+
res.send(result)
|
|
53
|
+
})
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Docs
|
|
57
|
+
For more information, please refer to our documentation: https://faststore.dev/reference/api/overview
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/api",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.27",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"graphql": "^15.6.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "10d2d9a4792003fbd20d3963e984a382f5e50ece"
|
|
46
46
|
}
|