Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Dec 10, 2024
1 parent 94650b6 commit bf16550
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions packages/analyzer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Release 0.10.3
- Better support symbols used as propertys, e.g. `get [foo]() { return 1 }`
- Better support symbols used as properties, e.g. `get [foo]() { return 1 }`

## Release 0.10.2
- Mark fields and methods starting with `#` as `private`
Expand All @@ -23,7 +23,7 @@
- Added `createRenderRoot` to lit's method denylist

## Release 0.9.5
- When using `litPlugin`, it now removes overriden lit specific lifecycle methods to be aligned with the behavior of overriding lit specific lifecycle methods in classes
- When using `litPlugin`, it now removes overridden lit specific lifecycle methods to be aligned with the behavior of overriding lit specific lifecycle methods in classes

## Release 0.9.4
- Updated the internally used TS version to `~5.4.2`. This is a breaking change for plugin authors, because the AST that typescript exposes has changed; specifically for decorators; `node.decorators` no longer exists, but decorators can now be found in `node.modifiers`. There may be other AST changes as well.
Expand Down Expand Up @@ -62,7 +62,7 @@
- Add support for `@part` jsdoc

## Release 0.6.8
- Detect types from lits static properties
- Detect types from Lit's static properties

## Release 0.6.7
- Fix `@internal` bug on decorated Lit properties
Expand Down Expand Up @@ -147,7 +147,7 @@
- Improved error logging

## Release 0.4.10
- Recognize `PrefixUnaryExpression` as being `number` when handling type inferrence
- Recognize `PrefixUnaryExpression` as being `number` when handling type inference

## Release 0.4.9
- Fixed bug to correctly apply default values on overridden inherited fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// This file will be found by find-depencies, and it should be filtered out in find-external-manifests
// This file will be found by find-dependencies, and it should be filtered out in find-external-manifests
export const internalVar = 'internalVar';
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"kind": "class",
"description": "",
"name": "IamDepricated",
"name": "IamDeprecated",
"superclass": {
"name": "HTMLElement"
},
Expand All @@ -27,7 +27,7 @@
{
"kind": "class",
"description": "",
"name": "IamDepricatedWithReason",
"name": "IamDeprecatedWithReason",
"superclass": {
"name": "HTMLElement"
},
Expand Down Expand Up @@ -76,17 +76,17 @@
},
{
"kind": "js",
"name": "IamDepricated",
"name": "IamDeprecated",
"declaration": {
"name": "IamDepricated",
"name": "IamDeprecated",
"module": "my-element.js"
}
},
{
"kind": "js",
"name": "IamDepricatedWithReason",
"name": "IamDeprecatedWithReason",
"declaration": {
"name": "IamDepricatedWithReason",
"name": "IamDeprecatedWithReason",
"module": "my-element.js"
}
},
Expand Down
12 changes: 6 additions & 6 deletions packages/analyzer/fixtures/06-jsdoc/ignore-internal/output.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"kind": "class",
"description": "",
"name": "IamDepricated",
"name": "IamDeprecated",
"superclass": {
"name": "HTMLElement"
},
Expand All @@ -27,7 +27,7 @@
{
"kind": "class",
"description": "",
"name": "IamDepricatedWithReason",
"name": "IamDeprecatedWithReason",
"superclass": {
"name": "HTMLElement"
},
Expand Down Expand Up @@ -76,17 +76,17 @@
},
{
"kind": "js",
"name": "IamDepricated",
"name": "IamDeprecated",
"declaration": {
"name": "IamDepricated",
"name": "IamDeprecated",
"module": "my-element.js"
}
},
{
"kind": "js",
"name": "IamDepricatedWithReason",
"name": "IamDeprecatedWithReason",
"declaration": {
"name": "IamDepricatedWithReason",
"name": "IamDeprecatedWithReason",
"module": "my-element.js"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export const variable = 'var';
export class IgnoreMe extends HTMLElement { }

/** @deprecated */
export class IamDepricated extends HTMLElement { }
export class IamDeprecated extends HTMLElement { }

/** @deprecated the reason for the deprecation. */
export class IamDepricatedWithReason extends HTMLElement { }
export class IamDeprecatedWithReason extends HTMLElement { }

customElements.define("ignore-me", IgnoreMe);

Expand Down
2 changes: 1 addition & 1 deletion packages/analyzer/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { create } from './src/create.js';
// Export ts to avoid version missmatch when using the create() method programatically
// Export ts to avoid version mismatch when using the create() method programmatically
export { default as ts } from 'typescript';
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function stencilPlugin() {
* Handle `@Prop` decorator, and store attributes to add to manifest later
* - if type is primitive -> create attr
* - if not `{ attribute: ''}` in decorator, just kebabcase the fieldname, otherwise use the value provided
* - if type is not primitve -> no attr
* - if type is not primitive -> no attr
* - add fieldName to attr
*/
node?.members
Expand Down
8 changes: 4 additions & 4 deletions packages/to-markdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function getOmittedConfig(type, omittedOptions) {
}

/** Declaration[] -> Declaration[] */
function filteredDeclarations(declarationsToFilter, ommitedDeclarations, classNameFilter) {
function filteredDeclarations(declarationsToFilter, omittedDeclarations, classNameFilter) {

// run classNameFilter function if present
const actualClassNameFilter = classNameFilter instanceof Function ? new RegExp(classNameFilter()) : new RegExp(classNameFilter);
Expand All @@ -147,11 +147,11 @@ function filteredDeclarations(declarationsToFilter, ommitedDeclarations, classNa
if(kindIs('class')(decl)) {
return actualClassNameFilter.test(decl.name);
} else if(kindIs('mixin')(decl)) {
return isDefined(ommitedDeclarations.mixins) && ommitedDeclarations.mixins === true;
return isDefined(omittedDeclarations.mixins) && omittedDeclarations.mixins === true;
} else if(kindIs('variable')(decl)) {
return isDefined(ommitedDeclarations.variables) && ommitedDeclarations.variables === true;
return isDefined(omittedDeclarations.variables) && omittedDeclarations.variables === true;
} else if(kindIs('function')(decl)) {
return isDefined(ommitedDeclarations.functions) && ommitedDeclarations.functions === true;
return isDefined(omittedDeclarations.functions) && omittedDeclarations.functions === true;
}

return keepDeclaration.every((result) => result === true);
Expand Down
2 changes: 1 addition & 1 deletion packages/to-markdown/lib/serialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function serialize(tree) {

export function parse(markdown) {
return fromMarkdown(markdown, {
extentions: [gfmFromMarkdown],
extensions: [gfmFromMarkdown],
});
}

Expand Down

0 comments on commit bf16550

Please sign in to comment.