Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apiaryio/drafter.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.0
Choose a base ref
...
head repository: apiaryio/drafter.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jan 28, 2015

  1. Update to latest protagonist

    Z committed Jan 28, 2015
    Copy the full SHA
    b595506 View commit details
  2. Update fixtures

    Z committed Jan 28, 2015
    Copy the full SHA
    de13b11 View commit details

Commits on Feb 3, 2015

  1. Merge pull request #3 from apiaryio/zdne/protagonist-0.18.3

    Update to latest protagonist
    pksunkara committed Feb 3, 2015
    Copy the full SHA
    e899d5f View commit details
  2. Copy the full SHA
    fb98aaf View commit details
  3. Merge pull request #4 from apiaryio/pksunkara/protagonist

    Update protagonist to v0.18.4
    zdne committed Feb 3, 2015
    Copy the full SHA
    0a62c2f View commit details

Commits on Feb 9, 2015

  1. Renamed repository

    pksunkara committed Feb 9, 2015
    Copy the full SHA
    da26fcb View commit details
  2. Merge pull request #5 from apiaryio/pksunkara/rename

    Renamed repository
    Ján Sáreník committed Feb 9, 2015
    Copy the full SHA
    25c97d3 View commit details
  3. Copy the full SHA
    0fc6b11 View commit details
  4. Finished inheritance rule

    pksunkara committed Feb 9, 2015
    Copy the full SHA
    2c2d1b5 View commit details
  5. Copy the full SHA
    a34820b View commit details
  6. Finished Mixins rule

    pksunkara committed Feb 9, 2015
    Copy the full SHA
    969f32e View commit details
  7. Copy the full SHA
    b4505ef View commit details
  8. Copy the full SHA
    67434b8 View commit details
  9. Copy the full SHA
    3a393db View commit details

Commits on Feb 10, 2015

  1. Copy the full SHA
    7ff1395 View commit details
  2. Copy the full SHA
    a62b737 View commit details
  3. Copy nested types value too

    pksunkara committed Feb 10, 2015
    Copy the full SHA
    00f3c43 View commit details

Commits on Feb 12, 2015

  1. Copy the full SHA
    0f944f0 View commit details

Commits on Feb 16, 2015

  1. Merge pull request #6 from apiaryio/pksunkara/start-expansion

    Finished expanding MSON
    zdne committed Feb 16, 2015
    Copy the full SHA
    c9387b6 View commit details
  2. Copy the full SHA
    154e1ca View commit details
  3. Minor bug squashing

    pksunkara committed Feb 16, 2015
    Copy the full SHA
    4972c55 View commit details
  4. Copy the full SHA
    0ed3de9 View commit details

Commits on Feb 17, 2015

  1. Merge pull request #7 from apiaryio/pksunkara/boutique

    Integrate boutique
    zdne committed Feb 17, 2015
    Copy the full SHA
    3547e34 View commit details
  2. Copy the full SHA
    c827614 View commit details
  3. Copy the full SHA
    a1cf771 View commit details

Commits on Feb 18, 2015

  1. Merge pull request #8 from apiaryio/pksunkara/resolved

    Use resolvedDataStructure instead of expanding data structures in place
    zdne committed Feb 18, 2015
    Copy the full SHA
    a97f928 View commit details

Commits on Mar 9, 2015

  1. Copy the full SHA
    a2c181b View commit details
  2. Merge pull request #9 from apiaryio/kylef/boutique

    [package] Point to latest release of boutique
    pksunkara committed Mar 9, 2015
    Copy the full SHA
    2edbf1f View commit details
  3. Copy the full SHA
    15867e1 View commit details
  4. Merge pull request #10 from apiaryio/kylef/protagonist-💥

    [package] Update protagonist-experimental to ~0.18.7
    pksunkara committed Mar 9, 2015
    Copy the full SHA
    d20a517 View commit details
  5. Copy the full SHA
    6e9031c View commit details
  6. Copy the full SHA
    a6a3ddd View commit details
  7. Merge pull request #11 from apiaryio/kylef/readme-oss

    [README] Update for public release
    pksunkara committed Mar 9, 2015
    Copy the full SHA
    f9e5878 View commit details

Commits on Mar 10, 2015

  1. Copy the full SHA
    846108e View commit details
  2. Merge pull request #12 from apiaryio/pksunkara/resolved-asset

    Fill payload's body and schema with resolved asset
    zdne committed Mar 10, 2015
    Copy the full SHA
    c3cb872 View commit details
  3. Added MIT License

    pksunkara committed Mar 10, 2015
    Copy the full SHA
    7fb5c5e View commit details
  4. Added npmignore

    pksunkara committed Mar 10, 2015
    Copy the full SHA
    027f8d8 View commit details
  5. Release v0.1.1

    pksunkara committed Mar 10, 2015
    Copy the full SHA
    a2d8034 View commit details
  6. Merge pull request #13 from apiaryio/pksunkara/package

    Added .npmignore, License and bumped version
    zdne committed Mar 10, 2015
    Copy the full SHA
    3d959d7 View commit details
  7. [package] Include the license

    kylef committed Mar 10, 2015
    Copy the full SHA
    4f5d90f View commit details
  8. Merge pull request #14 from apiaryio/kylef/license

    [package] Include the license
    zdne committed Mar 10, 2015
    Copy the full SHA
    a3ab919 View commit details
  9. Copy the full SHA
    0b5eaa7 View commit details
  10. Merge pull request #15 from apiaryio/kylef/boutique-0.1.3

    [package] Update boutique and make coffee a dev dep
    pksunkara committed Mar 10, 2015
    Copy the full SHA
    dc49701 View commit details

Commits on Mar 29, 2015

  1. Copy the full SHA
    0db8397 View commit details
  2. Copy the full SHA
    119c28e View commit details

Commits on Mar 30, 2015

  1. Merge pull request #16 from apiaryio/pksunkara/array

    Generate body and schema for arrays
    zdne committed Mar 30, 2015
    Copy the full SHA
    b6f41c4 View commit details
  2. Prepare for release v0.2.0

    pksunkara committed Mar 30, 2015
    Copy the full SHA
    b677431 View commit details
  3. Merge pull request #17 from apiaryio/pksunkara/prepare

    Prepare for release v0.2.0
    zdne committed Mar 30, 2015
    Copy the full SHA
    806b7c4 View commit details

Commits on Apr 1, 2015

  1. Copy the full SHA
    97759b7 View commit details
  2. Copy the full SHA
    6109609 View commit details
106 changes: 106 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
version: 2

aliases:
- &tag-filter
filters:
tags:
only: /^v.*/

- &test-workflow
<<: *tag-filter
requires:
- build

workflows:
version: 2
build-test:
jobs:
- build: *tag-filter
- test-node4: *test-workflow
- test-node6: *test-workflow
- test-node8: *test-workflow
- test-node10: *test-workflow
- deploy:
requires:
- build
- test-node4
- test-node6
- test-node8
- test-node10
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/

jobs:
build:
docker:
- image: apiaryio/emcc:1.38.11
steps:
- run: apt-get update && apt-get install -y git-core
- checkout
- run: git submodule update --recursive --init
- run: npm install
- run: ./scripts/wrap.js
- run: ./scripts/emcbuild.sh
- persist_to_workspace:
root: lib
paths:
- drafter.js
- drafter.js.mem
- drafter.nomem.js
- store_artifacts:
path: lib

test-node: &test-node
docker:
- image: node
steps:
- checkout
- run: git submodule update --recursive --init
- attach_workspace:
at: lib
- run: npm install
- run:
name: Building Drafter
command: |
cd ext/protagonist/drafter
./configure
make drafter
- run:
# Note, on Node 4 (older NPM) this MUST happen after NPM install
# otherwise NPM install triggers a rebuild
name: Building Protagonist
command: npm install ext/protagonist
- run: npm test

test-node4:
<<: *test-node
docker:
- image: node:4

test-node6:
<<: *test-node
docker:
- image: node:6

test-node8:
<<: *test-node
docker:
- image: node:8

test-node10:
<<: *test-node
docker:
- image: node:10

deploy:
docker:
- image: node:10
steps:
- checkout
- run: git submodule update --recursive --init
- attach_workspace:
at: lib
- run: ./scripts/release.sh
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
node_modules
/lib
lib
generated
config.gypi
build
drafterjs.gyp
THIRD_PARTY_LICENSES.txt
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ext/protagonist"]
path = ext/protagonist
url = https://github.com/apiaryio/protagonist.git
221 changes: 221 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
# drafter.js Changelog

## 3.2.0 (2020-04-20)

* Drafter contains two new options for disabling messageBody and
messageBodySchema generation from MSON. `generateMessageBody` and
`generatedMessageBodySchema` respectively.

## 3.1.0 (2019-03-17)

This update now uses Drafter 5.0.0-rc.1. Please see [Drafter
5.0.0-rc.1](https://github.com/apiaryio/drafter/releases/tag/v5.0.0-rc.1) for
the list of changes.

## 3.0.2 (2019-10-29)

This update now uses Drafter 4.0.2. Please see [Drafter
4.0.2](https://github.com/apiaryio/drafter/releases/tag/v4.0.2) for the list of
changes.

## 3.0.1 (2019-09-17)

This update now uses Drafter 4.0.1. Please see [Drafter
4.0.1](https://github.com/apiaryio/drafter/releases/tag/v4.0.1) for the list of
changes.

### Enhancements

- The Drafter NPM package now contains a `THIRD_PARTY_LICENSES.txt` file
which contains the licenses of the vendored C++ dependencies of the library.

## 3.0.0 (2019-07-02)

This update now uses Drafter 4.0.0-pre.8. Please see [Drafter
4.0.0-pre.8](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.8) for
the list of changes.

## 3.0.0-pre.7 (2019-06-03)

This update now uses Drafter 4.0.0-pre.7. Please see [Drafter
4.0.0-pre.7](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.7) for
the list of changes.

## 3.0.0-pre.6 (2019-05-20)

This update now uses Drafter 4.0.0-pre.6. Please see [Drafter
4.0.0-pre.6](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.6) for
the list of changes.

## 3.0.0-pre.5 (2019-05-07)

This update now uses Drafter 4.0.0-pre.5. Please see [Drafter
4.0.0-pre.5](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.5) for
the list of changes.

## 3.0.0-pre.4 (2019-04-26)

This update now uses Drafter 4.0.0-pre.4. Please see [Drafter
4.0.0-pre.4](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.4) for
the list of changes.

## 3.0.0-pre.3 (2019-04-08)

This update now uses Drafter 4.0.0-pre.3. Please see [Drafter
4.0.0-pre.3](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.3) for
the list of changes.

## 3.0.0-pre.2

This update now uses Drafter 4.0.0-pre.2. Please see [Drafter
4.0.0-pre.2](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.2) for
the list of changes.

### Breaking

- `parse` won't return `err` if we get a parse result with error annotations
- `parse`'s `options` is now optional following node.js convention
- `validate`'s `options` is now optional following node.js convention

## 3.0.0-pre.1

This update now uses Drafter 4.0.0-pre.1. Please see [Drafter
4.0.0-pre.1](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.1) for
the list of changes.

- Build done using emscripten 1.38.x

### Breaking

- `parse` returns parse result in both `err` and `result` of the callback function
- `parseSync` doesn't throw error anymore if we get a parse result with error annotations

## 3.0.0-pre.0

This update now uses Drafter 4.0.0-pre.0. Please see [Drafter
4.0.0-pre.0](https://github.com/apiaryio/drafter/releases/tag/v4.0.0-pre.0) for
the list of changes.

- Build done using emscripten 1.37.x

### Breaking

- Drop support node < 4.0
- Remove the option to select AST Type. The ouput will be only refract

## 2.6.7

This update now uses Drafter 3.2.7. Please see [Drafter
3.2.7]https://github.com/apiaryio/drafter/releases/tag/v3.2.7) for
the list of changes.

## 2.6.6

### Bug Fixes

This update now uses Drafter 3.2.6. Please see [Drafter
3.2.6](https://github.com/apiaryio/drafter/releases/tag/v3.2.6) for
the list of changes.

## 2.6.5

### Bug Fixes

This update now uses Drafter 3.2.5. Please see [Drafter
3.2.5](https://github.com/apiaryio/drafter/releases/tag/v3.2.5) for
the list of changes.

## 2.6.4

### Bug Fixes

- Drafter.js will no longer override `Module` allowing drafter.js users to
[override the emscripten execution
environment](https://kripken.github.io/emscripten-site/docs/api_reference/module.html#overriding-execution-environment).


## 2.6.3

This update now uses Drafter 3.2.3. Please see [Drafter
3.2.3](https://github.com/apiaryio/drafter/releases/tag/v3.2.3) for
the list of changes.

## 2.6.2

This update now uses Drafter 3.2.2. Please see [Drafter
3.2.2](https://github.com/apiaryio/drafter/releases/tag/v3.2.2) for
the list of changes.

The package now includes Typescript ts file.

## 2.6.1

This update now uses Drafter 3.2.1. Please see [Drafter
3.2.1](https://github.com/apiaryio/drafter/releases/tag/v3.2.1) for
the list of changes.

## 2.6.0

### Enhancements

- Added `validate` and `validateSync` to just return the warnings and errors
after parsing a blueprint.

## 2.5.2

This update now uses Drafter 3.1.3. Please see [Drafter
3.1.3](https://github.com/apiaryio/drafter/releases/tag/v3.1.3) for
the list of changes.

## 2.5.1

This update now uses Drafter 3.1.2. Please see [Drafter
3.1.2](https://github.com/apiaryio/drafter/releases/tag/v3.1.2) for
the list of changes.

## 2.5.0

This update now uses Drafter 3.1.1. Please see [Drafter
3.1.1](https://github.com/apiaryio/drafter/releases/tag/v3.1.1) for
the list of changes.

## 2.5.0-pre.0

This update now uses Drafter 3.1.0-pre.0. Please see [Drafter
3.1.0-pre.0](https://github.com/apiaryio/drafter/releases/tag/v3.1.0-pre.0) for
the list of changes.

## 2.4.3

### Bug Fixes

- Fixes an `undefined` exception thrown when the API Bleuprint
contained Unicode characters due to a missing function 'UTF8ToString'.
[issue #54](https://github.com/apiaryio/drafter.js/issues/54)


## 2.4.2

### Bug Fixes

- This release ensures that the .gyp and .gypi files are not detected during
building the NPM package. NPM incorrectly computes the `gypfile` without
respecting the `.npmignore` file.
[npm/read-package-json#52](https://github.com/npm/read-package-json/pull/52)


## 2.4.1

### Bug Fixes

- Removes unnecessary files from the NPM package. 2.4.0 included the C++ source
for Drafter and this causes problems while trying to install the package via
NPM since it will try and use node-gyp to build the source.


## 2.4.0

### Enhancements

- Substantial performance improvements, parsing blueprints is now much faster.
- drafter.js now follows [Universal Module Definition (UMD)](https://github.com/umdjs/umd).
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
(The MIT License)

Copyright (c) 2015 Apiary Inc. <support@apiary.io>.

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.
Loading