You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Updated all code to ES6+ syntax (async/await, template literals, arrow functions, etc.)
10
+
- No longer including a pre-built bundle in the package. such as [Webpack](https://webpack.js.org/), [Rollup](https://rollupjs.org/), [Parcel](https://parceljs.org/), or [Browserify](http://browserify.org/) to include JSON Schema $Ref Parser in your app
Copy file name to clipboardExpand all lines: README.md
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,14 +51,14 @@ JSON Schema $Ref Parser is a full [JSON Reference](https://tools.ietf.org/html/d
51
51
- Can [dereference](https://apidevtools.org/json-schema-ref-parser/docs/ref-parser.html#dereferencepath-options-callback) your schema, producing a plain-old JavaScript object that's easy to work with
52
52
- Supports [circular references](https://apidevtools.org/json-schema-ref-parser/docs/#circular-refs), nested references, back-references, and cross-references between files
53
53
- Maintains object reference equality —`$ref` pointers to the same value always resolve to the same object instance
54
-
-[Tested](https://apidevtools.org/json-schema-ref-parser/test/) in Node, io.js, and all major web browsers on Windows, Mac, and Linux
54
+
-[Tested](https://travis-ci.com/APIDevTools/json-schema-ref-parser) in Node and all major web browsers on Windows, Mac, and Linux
When using a transpiler such as [Babel](https://babeljs.io/) or [TypeScript](https://www.typescriptlang.org/), or a bundler such as [Webpack](https://webpack.js.org/) or [Rollup](https://rollupjs.org/), you can use **ECMAScript modules** syntax instead:
108
+
109
+
```javascript
110
+
import $RefParserfrom"json-schema-ref-parser";
117
111
```
118
112
119
113
114
+
115
+
Browser support
116
+
--------------------------
117
+
Json-Schema-Ref-Parser supports recent versions of every major web browser. Older browsers may require [Babel](https://babeljs.io/) and/or [polyfills](https://babeljs.io/docs/en/next/babel-polyfill).
118
+
119
+
To use Json-Schema-Ref-Parser in a browser, you'll need to use a bundling tool such as [Webpack](https://webpack.js.org/), [Rollup](https://rollupjs.org/), [Parcel](https://parceljs.org/), or [Browserify](http://browserify.org/). Some bundlers may require a bit of configuration, such as setting `browser:true` in [rollup-plugin-resolve](https://github.com/rollup/rollup-plugin-node-resolve).
120
+
121
+
122
+
120
123
API Documentation
121
124
--------------------------
122
125
Full API documentation is available [right here](https://apidevtools.org/json-schema-ref-parser/docs/)
@@ -141,9 +144,6 @@ To build/test the project locally on your computer:
141
144
4. __Run the tests__<br>
142
145
`npm test`
143
146
144
-
5.__Start the local web server__<br>
145
-
`npm start` (then browse to [http://localhost:8080/test/](http://localhost:8080/test/))
0 commit comments