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

Add a migration guide for 1.0 #51

Merged
merged 4 commits into from
Oct 16, 2018
Merged

Add a migration guide for 1.0 #51

merged 4 commits into from
Oct 16, 2018

Conversation

kylef
Copy link
Member

@kylef kylef commented Oct 16, 2018

This adds a guide which shows all the changes between 0.6 and 1.0. I hope I didn't miss any.

Copy link
Contributor

@honzajavorek honzajavorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some typos. Otherwise reads well.

```

In previous versions of API Elements, both forms were valid so this is not a
breaking change. However, we found multiple implementation that were fragile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implementations


### Category Element

The `meta` attribute has been renamed to `metadata` in a category element for
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But minim still calls it meta? Isn't it a discrepancy now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you maybe confusing meta at the element level, not the attribute called meta in the category element. Which was renamed to prevent confusion between the two.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

### Source Map Element

A source map element may contain an optional line and column number to make it
easier to handle source map information, computing the line and column number
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- source map information, computing
+ source map information. Computing


A source map element may contain an optional line and column number to make it
easier to handle source map information, computing the line and column number
can often be expensive so it may be provider by a parser. Note however that it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

provider -> provided


The layout of the enum element has been altered. The enumerations have been
moved to an enumerations attribute of the element and the content represented
the given value, like in other elements.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the content represented the given value

Reads strangely to me. Perhaps "the content now represents the given value"?

```

The intent of the structure was that it represents an enumeration of north,
east, south and west. As the enumerations do not include a `fixed` type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly nitpicking, but I thought cardinal points are title cased in English

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I am refering to the JSON values which are lowercase I don't want to mix the spelling. I've wrapped them in code blocks which I think makes that clearer.


The intent of the structure was that it represents an enumeration of north,
east, south and west. As the enumerations do not include a `fixed` type
attribute it represents an enumerations where any string is valid and not just
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enumeration?

@kylef
Copy link
Member Author

kylef commented Oct 16, 2018

Thanks for your review @honzajavorek, I've addressed it all in af40105.

Copy link
Contributor

@honzajavorek honzajavorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can hardly know whether it's exhaustive (someone from ADT would have to say), but otherwise LGTM!

tjanc
tjanc previously requested changes Oct 16, 2018
Copy link
Contributor

@tjanc tjanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON serialization section can use some rewording. Maybe also add links to the API Elements Spec, like the definition of value and type?

## JSON Serialisation

In prior versions of API Element, an element could be serialised in JSON as a
JSON type, or an API Element.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In prior versions of API Elements, an Element (i.e. a type) could be occasionally serialized as a value. This behaviour has since been dropped, so that Elements are always serialized in full form (i.e. as a type, not as a value). For example: ...

What about something like this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's much better, copied this into da2b009.

@kylef kylef merged commit c9c897f into master Oct 16, 2018
@kylef kylef deleted the kylef/migration-guide branch October 16, 2018 14:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants