diff --git a/README.md b/README.md index a4476d7..359a9ba 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,11 @@ console.log(config) // output: { PORT: 3000 } ``` -It is possible to also use [fluent-schema](http://npm.im/fluent-schema): +It is possible to also use [fluent-json-schema](http://npm.im/fluent-json-schema): ```js const envSchema = require('env-schema') -const S = require('fluent-schema') +const S = require('fluent-json-schema') const config = envSchema({ schema: S.object().prop('port', S.string().default('3000').required()), diff --git a/package.json b/package.json index 9629622..481003f 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://github.com/fastify/env-schema#readme", "devDependencies": { - "fluent-schema": "^1.1.0", + "fluent-json-schema": "^2.0.4", "pre-commit": "^1.2.2", "snazzy": "^9.0.0", "standard": "^16.0.0", diff --git a/test/fluent-schema.test.js b/test/fluent-schema.test.js index e5cc17a..b06bd65 100644 --- a/test/fluent-schema.test.js +++ b/test/fluent-schema.test.js @@ -9,10 +9,10 @@ if (parseInt(process.versions.node.split('.')[0]) <= 8) { } function run () { - const S = require('fluent-schema') + const S = require('fluent-json-schema') const makeTest = require('./make-test') - t.test('simple object - fluent-schema', t => { + t.test('simple object - fluent-json-schema', t => { const options = { schema: S.object().prop('PORT', S.string()), data: {