Skip to content

Commit

Permalink
Upgrade version to 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprey committed Feb 19, 2021
1 parent 0739b68 commit 507a0d9
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 15 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ All notable changes to the "svelte-intellisense" extension will be documented in

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [4.1.0] 19.02.2021

- 🎉 **[Misc]** Update the ReadMe by [@soft-decay](https://github.com/soft-decay).
-**[Added]** Implement support of imported types parsing, f.ex. `@type {import('../typings.d.ts').ExternalTypeClass}`. In order to do this, new field `importPath` introduced to `JSDocType`, in the name property now it returns imported class name, f.ex.: `ExternalTypeClass`.
- 🛠 **[Fixed]** Complete fix of [Issue #1](https://github.com/alexprey/sveltedoc-parser/issues/1): Support parsing event names from top-level constant objects with accessing to their properties by naming strings. Introduce the new issue [Issue #48](https://github.com/alexprey/sveltedoc-parser/issues/48) about supporting parse of event names by external references.
- 🛠 **[Fixed]** Fix the [Issue #47](https://github.com/alexprey/sveltedoc-parser/issues/48), now all comments in markup are parsed correctly and attached to required items in document. Support JSDoc comment markup parsing in all places where comment can be used.
- 🛠 **[Fixed]** Fix the [Issue #61](https://github.com/alexprey/sveltedoc-parser/issues/61), now slot parameter items enrich with all detailed information that was parsed from markup comment.
- 🛠 **[Fixed]** Spec: add the module definition typings to `typings.d.ts` file.
- 🛠 **[Fixed]** Fix some edge-cases in script parsing logic.
- 🛠 **[Tech]** Refactor internal parser logic to make it easy to introduce new features, moves forward to TS support! ;)
- 🔥 **[Breaking]** Spec: change the `SvelteSlotParameter` definition, to support `name`, `description`, `type` fields, instead of many not relevant fields that was inherited from `ISvelteItem` interface.
- 🔥 **[Breaking]** Spec: change the `SvelteSlotItem` definition, to improve consistency:
- Rename `parameters` property to `params` to be most likely the same as `SvelteMethodItem`. Old field still available until 5.* release.

Thanks a lot [@soft-decay](https://github.com/soft-decay) for contributing in this release!

## [4.0.0] 25.01.2021

- 🛠 **[Fixed]** Fix [Issue #42](https://github.com/alexprey/sveltedoc-parser/issues/42)
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Generate a JSON documentation for a Svelte file.
## Table of Contents <!-- omit in toc -->

- [Changelog](#changelog)
- [[4.1.0] 19.02.2021](#410-19022021)
- [[4.0.0] 25.01.2021](#400-25012021)
- [Install](#install)
- [Features](#features)
Expand All @@ -27,6 +28,22 @@ Generate a JSON documentation for a Svelte file.

## Changelog

### [4.1.0] 19.02.2021

- 🎉 **[Misc]** Update the ReadMe by [@soft-decay](https://github.com/soft-decay).
-**[Added]** Implement support of imported types parsing, f.ex. `@type {import('../typings.d.ts').ExternalTypeClass}`. In order to do this, new field `importPath` introduced to `JSDocType`, in the name property now it returns imported class name, f.ex.: `ExternalTypeClass`.
- 🛠 **[Fixed]** Complete fix of [Issue #1](https://github.com/alexprey/sveltedoc-parser/issues/1): Support parsing event names from top-level constant objects with accessing to their properties by naming strings. Introduce the new issue [Issue #48](https://github.com/alexprey/sveltedoc-parser/issues/48) about supporting parse of event names by external references.
- 🛠 **[Fixed]** Fix the [Issue #47](https://github.com/alexprey/sveltedoc-parser/issues/48), now all comments in markup are parsed correctly and attached to required items in document. Support JSDoc comment markup parsing in all places where comment can be used.
- 🛠 **[Fixed]** Fix the [Issue #61](https://github.com/alexprey/sveltedoc-parser/issues/61), now slot parameter items enrich with all detailed information that was parsed from markup comment.
- 🛠 **[Fixed]** Spec: add the module definition typings to `typings.d.ts` file.
- 🛠 **[Fixed]** Fix some edge-cases in script parsing logic.
- 🛠 **[Tech]** Refactor internal parser logic to make it easy to introduce new features, moves forward to TS support! ;)
- 🔥 **[Breaking]** Spec: change the `SvelteSlotParameter` definition, to support `name`, `description`, `type` fields, instead of many not relevant fields that was inherited from `ISvelteItem` interface.
- 🔥 **[Breaking]** Spec: change the `SvelteSlotItem` definition, to improve consistency:
- Rename `parameters` property to `params` to be most likely the same as `SvelteMethodItem`. Old field still available until 5.* release.

Thanks a lot [@soft-decay](https://github.com/soft-decay) for contributing in this release!

### [4.0.0] 25.01.2021

- 🛠 **[Fixed]** Fix [Issue #42](https://github.com/alexprey/sveltedoc-parser/issues/42)
Expand Down Expand Up @@ -207,7 +224,7 @@ Found a new issue? Please contribute and write a detailed description [here](htt

Author [Alexey Mulyukin](https://github.com/alexprey)

Based on [Vuedoc Parser](https://gitlab.com/vuedoc/parser)
Inspired by [Vuedoc Parser](https://gitlab.com/vuedoc/parser)

## License

Expand Down
6 changes: 3 additions & 3 deletions examples/Alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@
],
"slots": [
{
"name": "default",
"description": "The internal content of the alert block.",
"keywords": [],
"visibility": "public",
"parameters": []
"description": "The internal content of the alert block.",
"name": "default"
}
],
"refs": []
Expand Down
8 changes: 4 additions & 4 deletions examples/Button.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@
],
"events": [
{
"keywords": [],
"visibility": "public",
"description": "",
"name": "click",
"parent": "button",
"modificators": [],
"locations": null,
"visibility": "public",
"description": "",
"keywords": []
"locations": null
}
],
"slots": [],
Expand Down
36 changes: 30 additions & 6 deletions examples/SlotList.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,45 @@
"events": [],
"slots": [
{
"name": "default",
"description": "Render the one item markup based on data passed in slot property.\n @param {GenericListItem} prop The item of the list that should be rendered.",
"keywords": [
{
"name": "param",
"description": "{GenericListItem} prop The item of the list that should be rendered."
}
],
"visibility": "public",
"description": "Render the one item markup based on data passed in slot property.",
"name": "default",
"params": [
{
"type": {
"kind": "type",
"text": "GenericListItem",
"type": "GenericListItem"
},
"name": "prop",
"description": "The item of the list that should be rendered.",
"optional": false
}
],
"parameters": [
{
"type": {
"kind": "type",
"text": "GenericListItem",
"type": "GenericListItem"
},
"name": "prop",
"visibility": "public"
"description": "The item of the list that should be rendered.",
"optional": false
}
]
},
{
"name": "empty",
"description": null,
"keywords": [],
"visibility": "public",
"parameters": []
"description": "",
"name": "empty"
}
],
"refs": []
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sveltedoc-parser",
"version": "4.0.1",
"version": "4.1.0",
"description": "Generate a JSON documentation for a Svelte file",
"main": "index.js",
"types": "./typings.d.ts",
Expand Down

0 comments on commit 507a0d9

Please sign in to comment.