-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(site): Add index documentation page #48
- Loading branch information
Showing
4 changed files
with
186 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# DJV Documents | ||
|
||
Dynamic JSON-Schema Validator documents. | ||
|
||
This document contains links to documentation pages. | ||
|
||
## General Information | ||
|
||
* [Readme](/README.md) - How to use DJV | ||
* [Release Notes](/docs/release-notes.md) - Manually created release notes | ||
* [Changelog](/CHANGELOG.md) - An auto-generated changelog from commits messages | ||
* [Contributing](/CONTRIBUTING.md) - Welcome | ||
* [License](/LICENSE) - MIT | ||
|
||
## Technical Documentation | ||
|
||
* [State](/docs/state.md) - The document describes how the state is implemented in *djv* library, explains how schemas are resolved. | ||
* [Const](/docs/const.md) - A small note on how `const` keyword was implemented. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Release Notes <a name="title"></a> | ||
|
||
This document contains all notes about the past djv releases. | ||
Announcements are also sent to [the gitter channel](https://gitter.im/korzio/djv). | ||
|
||
[![Join the chat at https://gitter.im/korzio/djv](https://badges.gitter.im/korzio/djv.svg)] | ||
|
||
## Table of contents <a name="content"></a> | ||
|
||
* [Release Notes](#title) | ||
* [Table of contents](#content) | ||
* [2.0.0](#2.0.0) | ||
* [1.2.0](#1.2.0) - 2017-09-27 | ||
* [1.2.0](#1.1.1) - 2017-07-20 | ||
* [1.0.0](#1.0.0) - 2017-06-17 | ||
|
||
## 2.0.0 <a name="2.0.0"></a> | ||
|
||
Supports **draft-06** by default. | ||
|
||
All *draft-04* specific code is removed from the codebase. Within the release a separate library [is published](https://www.npmjs.com/package/@korzio/djv-draft-04) to support *draft-04*. It is installed by default as an [optional dependency](https://docs.npmjs.com/files/package.json#optionaldependencies) for *djv* package. | ||
|
||
To specify *draft-04* usage instantiate | ||
|
||
```javascript | ||
const env = djv({ | ||
version: 'draft-04', | ||
}); | ||
// or | ||
djv.useVersion('draft-04') | ||
``` | ||
|
||
**!Important** Applying the *draft-04* configuration will affect all *djv* instances in an application. Check the [documentation](/README.md#useVersion). | ||
|
||
## 1.2.0 (2017-09-27) <a name="1.2.0"></a> | ||
|
||
A [MR](https://github.com/korzio/djv/pull/50) which replaces the previous one and contains 2 big features: | ||
1. State refactoring - now tests are passing, the algorithm is redesigned (however there are still things to do in future) | ||
2. Draft-06 implemented | ||
|
||
Supports *draft-04* by default and can be configured to validate instances against *draft-06* specification. | ||
|
||
## 1.1.1 <a name="1.1.1"></a> | ||
|
||
[The release story](https://github.com/korzio/djv/issues/35) | ||
[The changelog](https://github.com/korzio/djv/blob/master/CHANGELOG.md#111-2017-07-20) | ||
|
||
In short - this release was about fixing [the major part of bugs](https://github.com/korzio/djv/issues/35#issuecomment-316698036) of updated json schema benchmark. | ||
The most of the work was done related to state management. I've tried to refactor that functionality. However the most tests regarding references are passing , there are still a few (5) of them failing. Next release will be about v5/v6 support, and the one after will be state refactoring again - I hope to rewrite it in a "wise" way, with algorithm description, tests analytics, etc. | ||
The other part was in updating the documentation, so I've created a [document](https://github.com/korzio/djv/blob/master/CONTRIBUTING.md) with a few guides how-to debug and release the package. It will be updated in future. | ||
|
||
Great thanks for all comments and participation. | ||
|
||
## 1.1.0 <a name="1.1.0"></a> | ||
|
||
The release contains | ||
- 2 features of a custom error format and adding formatters into environment | ||
- a big refactoring of utils and cleaning the structure | ||
- a few bug fixes (with a huge improvement of pending internals schemas) | ||
|
||
Here is the log for release - https://github.com/korzio/djv/issues/26 | ||
Changelog - https://github.com/korzio/djv/blob/master/CHANGELOG.md | ||
Great thanks for all comments and participants. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!--- | ||
## What relative tasks can be? Why use json-schema? | ||
### Meta programming | ||
What is [generate-function](https://www.npmjs.com/package/generate-function)? How to write well-optimized functions? | ||
- Templates | ||
- Validators | ||
### Goals | ||
- keep structure and code clean | ||
in is-my-json-schema-valid and jjv packages structure is - one file | ||
- add architecture ability to set instantiate and randomize data | ||
- fast validation | ||
- normal speed generation | ||
### Refactoring jjv | ||
- splitted into files | ||
- updated variable names | ||
### Refactoring for generated function | ||
investigate c++ inline functions | ||
- is-my-json-valid implementation | ||
- got a generated-function | ||
- updated generated function with few methods - resolve, error, etc, cache - Maybe it is better to use some meta language for it? | ||
### Optimized things | ||
- Added Measured | ||
- Describe All measurements | ||
### Google Closure Advanced | ||
- features | ||
- what is used | ||
- why still need optimizations | ||
## TODO | ||
### Todo Optimizations List | ||
- generatedNonReffunctions 1377, generatedfunctionsUsed 3003 - make fn.if function, and transport scope/context/state to generate function | ||
- update ref usage for non-ref inline functions - if a linke does not contain refs inside (can be easily checked by json.stringify), it should be a regular if-else consequence as well - Optimize small schemas (like in allOf example - don't generate function, althought return context) | ||
- [if optimization](http://jsperf.com/ifs-vs-expression)? | ||
- [killing optimization](http://habrahabr.ru/company/mailru/blog/273839/) | ||
### General | ||
- [asmjs compile step](http://ejohn.org/blog/asmjs-javascript-compile-target/) | ||
- [compile with google closure or smth](https://www.npmjs.com/package/google-closure-compiler) | ||
- $data | ||
- add posibility to customize validators | ||
- add nested tests | ||
- add tests to [resolve](http://tools.ietf.org/html/draft-zyp-json-schema-04#section-7.2.4) | ||
--> |