Skip to content

Commit

Permalink
feat: version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
htmujahid committed May 16, 2024
1 parent b5dd4b6 commit 36fa34d
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 37 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/create-sonnet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-sonnet-app",
"version": "0.0.16",
"version": "0.0.17",
"description": "",
"main": "index.js",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"vite": "^5.2.6"
},
"dependencies": {
"@sonnetjs/core": "0.0.27"
"@sonnetjs/core": "0.0.29"
}
}
2 changes: 1 addition & 1 deletion packages/create-sonnet/template/code/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"vite": "^5.2.6"
},
"dependencies": {
"@sonnetjs/core": "0.0.27"
"@sonnetjs/core": "0.0.29"
}
}
4 changes: 2 additions & 2 deletions packages/create-sonnet/template/code/router-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"vite": "^5.2.6"
},
"dependencies": {
"@sonnetjs/core": "0.0.27",
"@sonnetjs/router": "0.0.3"
"@sonnetjs/core": "0.0.29",
"@sonnetjs/router": "0.0.4"
}
}
4 changes: 2 additions & 2 deletions packages/create-sonnet/template/code/router-ts/src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class App extends SonnetComponent {
return /*html */ `
${Header()}
<div id="app-1">
${this.children()}
${this._children}
</div
`;
}
}

export default $component(App);
export default $component(App);
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ class RootComponent extends SonnetComponent {
public get() {
return /*html*/ `
<div>
${this.children()}
${this._children}
this is new thing
</div>
`;
}
}

export default $component(RootComponent);
export default $component(RootComponent);
4 changes: 2 additions & 2 deletions packages/create-sonnet/template/code/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"vite": "^5.2.6"
},
"dependencies": {
"@sonnetjs/core": "0.0.27",
"@sonnetjs/router": "0.0.3"
"@sonnetjs/core": "0.0.29",
"@sonnetjs/router": "0.0.4"
}
}
4 changes: 2 additions & 2 deletions packages/create-sonnet/template/code/router/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class App extends SonnetComponent {
return /*html */ `
${Header()}
<div id="app-1">
${this.children_}
${this._children}
</div
`;
}
}

export default $component(App);
export default $component(App);
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ class RootComponent extends SonnetComponent {
get() {
return /*html*/ `
<div>
${this.children_}
${this._children}
this is new thing
</div>
`;
}
}

export default $component(RootComponent);
export default $component(RootComponent);
2 changes: 1 addition & 1 deletion packages/create-sonnet/template/code/ssr-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"compression": "^1.7.4",
"express": "^4.18.2",
"sirv": "^2.0.4",
"@sonnetjs/core": "*"
"@sonnetjs/core": "0.0.29"
},
"devDependencies": {
"@types/express": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-sonnet/template/code/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"compression": "^1.7.4",
"express": "^4.18.2",
"sirv": "^2.0.4",
"@sonnetjs/core": "*"
"@sonnetjs/core": "0.0.29"
},
"devDependencies": {
"@types/express": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/sonnet-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sonnetjs/core",
"version": "0.0.28",
"version": "0.0.29",
"files": [
"dist"
],
Expand Down
21 changes: 6 additions & 15 deletions packages/sonnet-core/src/abstract/SonnetComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,20 @@ export interface SonnetComponentProps {
export default abstract class SonnetComponent {
constructor() {}

private _id: string = '';
id(id?: string) {
if (id === undefined) {
return this._id;
}
protected _id: string = '';
id(id: string) {
this._id = id;
return this;
}

private _index: number = 0;
index(index?: number) {
if (index === undefined) {
return this._index;
}
protected _index: number = 0;
index(index: number) {
this._index = index;
return this;
}

private _children: SonnetGet = '';
children(children?: SonnetGet) {
if (children === undefined) {
return this._children;
}
protected _children: SonnetGet = '';
children(children: SonnetGet) {
this._children = children;
return this;
}
Expand Down

0 comments on commit 36fa34d

Please sign in to comment.