@saplings/adapter-app 0.17.1 → 0.17.2
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 +11 -0
- package/README.md +27 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @saplings/adapter-app
|
|
2
2
|
|
|
3
|
+
## 0.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 886be53: Publish onboarding guides, API summaries, and examples in each npm package.
|
|
8
|
+
|
|
9
|
+
Use the single sapling executable for catalog, scan, doctor, and quality commands. Install @saplings/cli and replace sapling-quality with sapling quality. Replace sapling-quality-legacy with sapling quality legacy.
|
|
10
|
+
- Updated dependencies [886be53]
|
|
11
|
+
- Updated dependencies [886be53]
|
|
12
|
+
- @saplings/sdk@0.17.2
|
|
13
|
+
|
|
3
14
|
## 0.17.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @saplings/adapter-app
|
|
2
|
+
|
|
3
|
+
Run bounded GraphQL operations and image transforms for the Node.js SDK.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @saplings/adapter-app graphql
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { buildSchema } from 'graphql';
|
|
15
|
+
import { graphqlExecutor } from '@saplings/adapter-app';
|
|
16
|
+
|
|
17
|
+
const schema = buildSchema('type Query { version: String }');
|
|
18
|
+
const executor = graphqlExecutor(schema, 6, 150);
|
|
19
|
+
console.log(executor.schema);
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## API and integration
|
|
23
|
+
|
|
24
|
+
- `graphqlExecutor(schema, maxDepth?, maxNodes?)` builds a GraphQL execution adapter for `services.operations.graphql`. Attach resolvers to the schema and enforce actor and tenant authorization in them.
|
|
25
|
+
- `new SharpTransformer().transform(bytes, { width, height, format })` returns encoded PNG, JPEG, or WebP bytes. Feed the transformer bounded uploads and test the native Sharp binary in the deployment image.
|
|
26
|
+
|
|
27
|
+
Read the [integration guide](https://github.com/snrakshith/saplings/blob/main/docs/technical-specifications/ENGINEERING_090.md) for configuration and operational details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saplings/adapter-app",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"graphql": "^16.11.0",
|
|
15
15
|
"sharp": "^0.35.5",
|
|
16
|
-
"@saplings/sdk": "0.17.
|
|
16
|
+
"@saplings/sdk": "0.17.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^26.0.0"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
|
+
"README.md",
|
|
23
24
|
"CHANGELOG.md"
|
|
24
25
|
],
|
|
25
26
|
"license": "MIT",
|