Documentation about backward compatibility

This commit is contained in:
Fabio José 2018-11-09 14:46:28 -02:00
parent f58b8baa3b
commit 55c4f54b21
1 changed files with 5 additions and 2 deletions

View File

@ -52,7 +52,7 @@ Javascript SDK for CloudEvents
var cloudevent01 = new Cloudevent(); var cloudevent01 = new Cloudevent();
/* /*
* Implemented using [Builder Design Pattern](https://en.wikipedia.org/wiki/Builder_pattern) * Implemented using Builder Design Pattern
*/ */
cloudevent01 cloudevent01
.type("com.github.pull.create") .type("com.github.pull.create")
@ -60,7 +60,6 @@ cloudevent01
/* /*
* Backward compatibility by injecting methods from spec implementation to `Cloudevent` * Backward compatibility by injecting methods from spec implementation to `Cloudevent`
* See how [here](lib/specs/spec_0_1.js#L17)
*/ */
cloudevent01 cloudevent01
.eventTypeVersion("1.0"); .eventTypeVersion("1.0");
@ -81,3 +80,7 @@ cloudevent02
``` ```
> See how to implement the method injection [here](lib/specs/spec_0_1.js#L17)
>
> [Builder Design Pattern](https://en.wikipedia.org/wiki/Builder_pattern)
>