shapeshifter
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -1,3 +0,14 @@ | ||
# 6.0.0 | ||
# 6.1.0 - 04/10/18 | ||
#### 🚀 New | ||
* Type `key` can now use shorthand syntax. | ||
#### 🐞 Fixed | ||
* Added missing `@types` to dependency list. | ||
* Replaced `index.d.ts` with individual files generated with `--declaration`. | ||
# 6.0.0 - 04/06/18 | ||
#### 💥 Breaking | ||
@@ -4,0 +15,0 @@ |
@@ -26,3 +26,3 @@ "use strict"; | ||
if (typeof baseConfig === 'string') { | ||
if (isPrimitive_1.default(normalizeType_1.default(baseConfig))) { | ||
if (isPrimitive_1.default(baseConfig)) { | ||
config.type = baseConfig; | ||
@@ -29,0 +29,0 @@ } |
@@ -9,4 +9,4 @@ "use strict"; | ||
var type = normalizeType_1.default(value); | ||
return type === 'boolean' || type === 'number' || type === 'string'; | ||
return type === 'boolean' || type === 'number' || type === 'string' || type === 'key'; | ||
} | ||
exports.default = isPrimitive; |
@@ -166,4 +166,4 @@ "use strict"; | ||
default: { | ||
var name = definition.name.value; | ||
throw new TypeError("Unsupported GraphQL definition \"" + name + "\"."); | ||
var name_1 = definition.name.value; | ||
throw new TypeError("Unsupported GraphQL definition \"" + name_1 + "\"."); | ||
} | ||
@@ -170,0 +170,0 @@ } |
{ | ||
"name": "shapeshifter", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "Generate relational schemas, PropTypes, Flow aliases, and TypeScript interfaces from JSON, JS, or GraphQL schematic files.", | ||
@@ -27,8 +27,8 @@ "keywords": [ | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"module": "./esm/index.js", | ||
"bin": "./bin/shapeshifter.js", | ||
"scripts": { | ||
"babel": "beemo typescript --node", | ||
"build": "yarn run babel && yarn run build:dts", | ||
"build:dts": "beemo run-script generate-dts", | ||
"babel": "beemo typescript --node --declaration", | ||
"build": "yarn run babel", | ||
"check": "flow check && tsc --noEmit --lib esnext,esnext.asynciterable ./tests/expected/graphql/typescript/*.ts ./tests/expected/common/typescript/*.ts", | ||
@@ -67,14 +67,13 @@ "clean": "rimraf ./{lib,esm}/", | ||
"dependencies": { | ||
"@types/graphql": "^0.13.0", | ||
"@types/js-yaml": "^3.11.1", | ||
"@types/webpack": "^4.1.3", | ||
"@types/yargs": "^11.0.0", | ||
"babel-runtime": "^6.26.0", | ||
"graphql": "^0.13.2", | ||
"js-yaml": "^3.11.0", | ||
"optimal": "^0.18.0", | ||
"optimal": "^0.19.0", | ||
"yargs": "^11.0.0" | ||
}, | ||
"devDependencies": { | ||
"@milesj/build-tool-config": "^0.80.0", | ||
"@types/graphql": "^0.13.0", | ||
"@types/js-yaml": "^3.11.1", | ||
"@types/webpack": "^4.1.3", | ||
"@milesj/build-tool-config": "^0.82.2", | ||
"flow-bin": "^0.69.0", | ||
@@ -85,3 +84,3 @@ "prop-types": "^15.6.1", | ||
"webpack-cli": "^2.0.14", | ||
"webpack-dev-server": "^3.1.1" | ||
"webpack-dev-server": "^3.1.3" | ||
}, | ||
@@ -88,0 +87,0 @@ "beemo": { |
Sorry, the diff of this file is not supported yet
7
91
498255
8
2819
+ Added@types/graphql@^0.13.0
+ Added@types/js-yaml@^3.11.1
+ Added@types/webpack@^4.1.3
+ Added@types/graphql@0.13.4(transitive)
+ Added@types/js-yaml@3.12.10(transitive)
+ Added@types/node@22.13.5(transitive)
+ Added@types/source-list-map@0.1.6(transitive)
+ Added@types/tapable@1.0.12(transitive)
+ Added@types/uglify-js@3.17.5(transitive)
+ Added@types/webpack@4.41.40(transitive)
+ Added@types/webpack-sources@3.2.3(transitive)
+ Addedanymatch@3.1.3(transitive)
+ Addednormalize-path@3.0.0(transitive)
+ Addedoptimal@0.19.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedsource-map@0.6.10.7.4(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removedbabel-runtime@^6.26.0
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedoptimal@0.18.0(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
Updatedoptimal@^0.19.0