Skip to content

ScalarType: is there any purpose for renaming option specifiedByUrl (15.x) to specifiedByURL (16.x)? It affects on GraphQLJSON and other scalars distributed via npm #3156

Closed
@nodkz

Description

@nodkz

Is there any purpose that in v16 was renamed the following property:

export class GraphQLScalarType {  
  name: string;  
  description: Maybe<string>; 
-  specifiedByUrl: Maybe<string>;
+  specifiedByURL: Maybe<string>;

v15.5 https://github.com/graphql/graphql-js/blob/15.x.x/src/type/definition.js#L578
v16.0.0-alpha.2 https://github.com/graphql/graphql-js/blob/main/src/type/definition.ts#L580


This change breaks specifiedByUrl definition for Scalars distributed via npm. Most popular is GraphQLJSON: https://github.com/taion/graphql-type-json/blob/master/src/index.js#L55-L56

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions