static-land icon indicating copy to clipboard operation
static-land copied to clipboard

Spec versioning

Open rpominov opened this issue 8 years ago • 1 comments

We'll probably need to change spec over time. So we can end up in a situation where two libs use different spec versions and can't be used together. We should find the least painful way for dealing with those situations.

rpominov avatar Mar 14 '16 13:03 rpominov

We could require a .specVersion property on type objects (similar to other meta info). The version could be obtained like this:

import {version} from 'static-land'

const MyType = {
  specVersion: version,
  ...
}

Just an idea, did't really considered all cons/pros yet...

rpominov avatar Apr 03 '16 22:04 rpominov