@faststore/api 1.3.24 → 1.3.28

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +56 -2
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
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.28 (2021-12-10)
7
+
8
+ **Note:** Version bump only for package @faststore/api
9
+
10
+
11
+
12
+
13
+
14
+ ## 1.3.27 (2021-12-10)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * Add Banner Components exportation ([#1072](https://github.com/vtex/faststore/issues/1072)) ([4024104](https://github.com/vtex/faststore/commit/4024104f9804c8762037f03d986a4334af819b3c))
20
+
21
+
22
+
23
+
24
+
25
+ ## 1.3.26 (2021-12-09)
26
+
27
+ **Note:** Version bump only for package @faststore/api
28
+
29
+
30
+
31
+
32
+
33
+ ## 1.3.25 (2021-12-09)
34
+
35
+ **Note:** Version bump only for package @faststore/api
36
+
37
+
38
+
39
+
40
+
6
41
  ## 1.3.24 (2021-12-09)
7
42
 
8
43
 
package/README.md CHANGED
@@ -1,3 +1,57 @@
1
- # @faststore/api
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
- Docs moved to: https://faststore.dev/reference/api/overview
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.24",
3
+ "version": "1.3.28",
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": "49130385a8cc7ad0b89eba2ca83081d9500423a3"
45
+ "gitHead": "9758007da78d01007694f4204b4a47677ea36dcb"
46
46
  }