Comparing version 0.12.0-rc.13 to 0.12.0-rc.14
{ | ||
"name": "nexus", | ||
"version": "0.12.0-rc.13", | ||
"version": "0.12.0-rc.14", | ||
"description": "Scalable, strongly typed GraphQL schema development", | ||
@@ -26,3 +26,4 @@ "keywords": [ | ||
"README.md", | ||
"yarn.lock" | ||
"yarn.lock", | ||
"scripts/framework-transition-notice.js" | ||
], | ||
@@ -40,2 +41,3 @@ "main": "dist", | ||
"format": "prettier --write 'src/**/*.ts' 'tests/**/*.ts'", | ||
"postinstall": "node scripts/framework-transition-notice.js", | ||
"link-examples": "cd website && yarn && yarn gulp link-examples", | ||
@@ -42,0 +44,0 @@ "lint": "tslint -p tsconfig.json", |
@@ -1,13 +0,11 @@ | ||
<p align="center"> | ||
<a href="https://nexus.js.org"><img src="https://i.imgur.com/Y5BgDGl.png" width="150" /><a> | ||
<h1 align="center">Nexus</h1> | ||
</p> | ||
# Nexus Schema | ||
[![CircleCI](https://img.shields.io/circleci/build/github/prisma-labs/nexus)](https://circleci.com/gh/prisma-labs/nexus) | ||
[![npm version](https://badge.fury.io/js/nexus.svg)](https://badge.fury.io/js/nexus) | ||
[![Slack](https://slack.prisma.io/badge.svg)](https://slack.prisma.io/) | ||
[![CircleCI](https://img.shields.io/circleci/build/github/graphql-nexus/schema)](https://circleci.com/gh/graphql-nexus/schema) | ||
[![npm version](https://badge.fury.io/js/%40nexus%2Fschema.svg)](https://badge.fury.io/js/%40nexus%2Fschema) | ||
Declarative, code-first and strongly typed GraphQL schema construction for TypeScript & JavaScript | ||
> GraphQL Nexus can be used independently from [Prisma](https://www.prisma.io). To learn how it can best be combined with Prisma, check out the [`nexus-prisma`](https://github.com/prisma-labs/nexus-prisma) plugin. | ||
> **Note** | ||
> | ||
> The `nexus` package is becoming the Nexus framework. Learn more about the transition in [#373](https://github.com/prisma-labs/nexus/issues/373). Learn how to migrate your app to the framework in the [migration guide](/getting-started/migrate-from-nexus-schema). Don't worry, you will be able to continue using this schema component standalone. | ||
@@ -26,3 +24,3 @@ ## Overview | ||
```ts | ||
import { queryType, stringArg, makeSchema } from "nexus"; | ||
import { queryType, stringArg, makeSchema } from "@nexus/schema"; | ||
import { GraphQLServer } from "graphql-yoga"; | ||
@@ -54,3 +52,3 @@ | ||
All examples of GraphQL Nexus can be found in the [`/examples`](./examples) directory: | ||
All examples of Nexus Schema can be found in the [`/examples`](./examples) directory: | ||
@@ -63,8 +61,2 @@ - [githunt-api](./examples/githunt-api) | ||
If you're interested in examples using the [`nexus-prisma`](https://github.com/prisma-labs/nexus-prisma) plugin, check out the official [`prisma-examples`](https://github.com/prisma/prisma-examples/) repo: | ||
- [GraphQL blogging app](https://github.com/prisma/prisma-examples/tree/master/typescript/graphql) | ||
- [GraphQL blogging app with authentication & authorization](https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-auth) | ||
- [GraphQL CRUD example](https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-crud) | ||
## Features | ||
@@ -87,10 +79,10 @@ | ||
You can find the docs for GraphQL Nexus [here](https://nexus.js.org). | ||
You can find the docs for Nexus Schema [here](https://nexus.js.org). | ||
## Install | ||
GraphQL Nexus can be installed via the `nexus` package. It also requires `graphql` as a [peer dependency](https://nodejs.org/en/blog/npm/peer-dependencies/): | ||
Nexus Schema can be installed via the `@nexus/schema` package. It also requires `graphql` as a [peer dependency](https://nodejs.org/en/blog/npm/peer-dependencies/): | ||
``` | ||
npm install --save nexus graphql | ||
npm install --save @nexus/schema graphql | ||
``` | ||
@@ -101,3 +93,3 @@ | ||
``` | ||
yarn add nexus graphql | ||
yarn add @nexus/schema graphql | ||
``` | ||
@@ -110,13 +102,1 @@ | ||
![](https://imgur.com/AbkFWNO.png) | ||
--- | ||
## License (MIT) | ||
(c) 2018-2020 Tim Griesser | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
166
14474
893919
97
1