Skip to content

Commit 32c83c1

Browse files
authored
[#13] Fix runtime dependencies
* [#13] Fix babel configuration, target node 10, closes #13
1 parent fa6a9b1 commit 32c83c1

9 files changed

+151
-153
lines changed

.babelrc

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
2+
23
"presets": [
3-
"@babel/preset-env",
4+
["@babel/preset-env", {
5+
"targets": { "node": "10" }
6+
}],
47
"minify"
5-
],
6-
"plugins": [
7-
[ "@babel/plugin-transform-runtime", {
8-
"regenerator": true
9-
} ]
108
]
119
}

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
12+
- [[#13](https://github.com/schemadb/node-sdk/issues/13)] Fix runtime dependencies.
13+
814
## [0.1.0] - 2020-04-12
915

1016
### Added

docs/_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# You can create any custom variable you would like, and they will be accessible
1919
# in the templates via {{ site.myvariable }}.
2020

21-
title: '@schemadb/node-sdk'
21+
title: '@schemadb/sdk'
2222
2323
description: >- # this means to ignore newlines until "baseurl:"
2424
Write an awesome description for your new site here. You can edit this

docs/api-reference.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Get latest schema version for a given namespace and name. It caches versions in
3232
{: .no_toc }
3333

3434
```js
35-
const schemadb = require('@schemadb/node-sdk');
35+
const schemadb = require('@schemadb/sdk');
3636
schemadb.init('1036fae0-3a28-11ea-a5e3-...');
3737
const schema = await schemadb.getSchema('com.example.store', 'order');
3838
```
@@ -55,7 +55,7 @@ Save new Avro schema to platform. Will fail if version already exists.
5555
{: .no_toc }
5656

5757
```js
58-
const schemadb = require('@schemadb/node-sdk');
58+
const schemadb = require('@schemadb/sdk');
5959
schemadb.init('1036fae0-3a28-11ea-a5e3-...');
6060

6161
const orderSchema = {
@@ -100,7 +100,7 @@ Encode `Object` to Avro binary [Buffer](https://nodejs.org/api/buffer.html).
100100
{: .no_toc }
101101

102102
```js
103-
const schemadb = require('@schemadb/node-sdk');
103+
const schemadb = require('@schemadb/sdk');
104104
schemadb.init('1036fae0-3a28-11ea-a5e3-...');
105105

106106
// Get latest schema by namespace and name
@@ -132,7 +132,7 @@ Decode Avro binary [Buffer](https://nodejs.org/api/buffer.html) to `Object`.
132132
{: .no_toc }
133133

134134
```js
135-
const schemadb = require('@schemadb/node-sdk');
135+
const schemadb = require('@schemadb/sdk');
136136
schemadb.init('1036fae0-3a28-11ea-a5e3-...');
137137

138138
// Decode binary buffer to JSON object

docs/index.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This is the Node.js SDK for [https://schemadb.com](https://schemadb.com).
1313
## Installation
1414

1515
```bash
16-
npm i @schemadb/node-sdk
16+
npm i @schemadb/sdk
1717
```
1818

1919
## Usage

docs/quickstart.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ First of all, login to [https://schemadb.com](https://schemadb.com) and head to
1010

1111
## Initialize
1212
```js
13-
const schemadb = require('@schemadb/node-sdk');
13+
const schemadb = require('@schemadb/sdk');
1414
schemadb.init('1036fae0-3a28-11ea-a5e3-...');
1515

1616
// You can also pass some options

0 commit comments

Comments
 (0)