Skip to content

Commit

Permalink
Merge pull request #94 from AliMD/fix/rename-alwatr
Browse files Browse the repository at this point in the history
[BREAKING CHANGES] Rename `vatr` to `alwatr`
  • Loading branch information
alimd authored Mar 11, 2022
2 parents f84f6ea + eea4035 commit 0b5481e
Show file tree
Hide file tree
Showing 39 changed files with 377 additions and 474 deletions.
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/1-bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body:
id: affected-packages
attributes:
label: Package(s)
description: Which @vatr/* package(s) are the source of the bug?
description: Which @alwatr/* package(s) are the source of the bug?
options:
- fetch
- logger
Expand Down Expand Up @@ -54,21 +54,21 @@ body:
- type: textarea
id: registeredList
attributes:
label: Vatr registered list
description: Please provide the Vatr registered list by running `console.log(JSON.stringify(window.Vatr.registeredList, null, 2));` in the browser console.
label: Alwatr registered list
description: Please provide the Alwatr registered list by running `console.log(JSON.stringify(window.Alwatr.registeredList, null, 2));` in the browser console.
render: console
placeholder: |
[
{
"name": "@vatr/logger",
"name": "@alwatr/logger",
"version": "1.2.3"
},
{
"name": "@vatr/signal",
"name": "@alwatr/signal",
"version": "1.2.3"
},
{
"name": "@vatr/router",
"name": "@alwatr/router",
"version": "1.2.3"
}
]
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2-feature-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body:
id: affected-packages
attributes:
label: Package(s)
description: Which @vatr/* package(s) are the source of the bug?
description: Which @alwatr/* package(s) are the source of the bug?
options:
- fetch
- logger
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Fixes #(issue)
Please check if your PR fulfills the following requirements:

- [ ] Open an issue for bug report or feature request and mention it to this PR.
- [ ] The commit message follows our guidelines: <https://github.com/AliMD/vatr/blob/main/CONTRIBUTING.md#commit-message-format>
- [ ] The commit message follows our guidelines: <https://github.com/AliMD/alwatr/blob/main/CONTRIBUTING.md#commit-message-format>
- [ ] All methods have proper description in `jsdocs` format with `@example` section.
- [ ] Docs have been added / updated (for bug fixes / features).
- [ ] I have performed a self-review of my own code.
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
},
"cSpell.language": "en,fa",
"cSpell.words": [
"alvatr",
"alwatr",
"khafan",
"mastmalize",
"Mihandoost",
"noncallable",
"tsbuildinfo",
"Vatr"
"Alwatr"
],
"typescript.tsdk": "node_modules\\typescript\\lib",
"files.exclude": {
Expand Down
206 changes: 103 additions & 103 deletions CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Contributor Code of Conduct

As contributors and maintainers of the AlVatr projects, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.
As contributors and maintainers of the Alwatr projects, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.

Communication through any of AlVatr channels (GitHub, Telegram, Twitter, etc.) must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Communication through any of Alwatr channels (GitHub, Telegram, Twitter, etc.) must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.

We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect anyone contributing to the AlVatr projects to do the same.
We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect anyone contributing to the Alwatr projects to do the same.

If any member of the community violates this code of conduct, the maintainers of the AlVatr projects may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.
If any member of the community violates this code of conduct, the maintainers of the Alwatr projects may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.

If you are subject to or witness unacceptable behavior, or have any other concerns, please email us at [[email protected]](mailto:[email protected]).
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Contributing to AlVatr projects
# Contributing to Alwatr projects

We would love for you to contribute to AlVatr projects and help make it even better than it is today!
We would love for you to contribute to Alwatr projects and help make it even better than it is today!
As a contributor, here are the guidelines we would like you to follow:

## Code of Conduct

Help us keep AlVatr projects open and inclusive.
Help us keep Alwatr projects open and inclusive.
Please read and follow our [Code of Conduct](./CODE_OF_CONDUCT.md).

## Found a Bug?
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# The Vatr Library (Alvatr Library)
# The Alwatr Library
54 changes: 27 additions & 27 deletions demo/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,64 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.5.0](https://github.com/AliMD/One/compare/v0.4.0...v0.5.0) (2022-03-11)
# [0.5.0](https://github.com/AliMD/alwatr/compare/v0.4.0...v0.5.0) (2022-03-11)

**Note:** Version bump only for package @vatr/demo
**Note:** Version bump only for package @alwatr/demo





# [0.4.0](https://github.com/AliMD/One/compare/v0.3.0...v0.4.0) (2022-03-11)
# [0.4.0](https://github.com/AliMD/alwatr/compare/v0.3.0...v0.4.0) (2022-03-11)


### Features

* **logger:** add logProperty, logMethodFull ([8b0317d](https://github.com/AliMD/One/commit/8b0317db88ed73604a27935a3a30cd5c31cb0804))
* **logger:** complete refactor the logger with new API and fix show correct line number ([7efe8cf](https://github.com/AliMD/One/commit/7efe8cf0f566e148406f38fdd60fa3d747c9bc51))
* **logger:** add logProperty, logMethodFull ([8b0317d](https://github.com/AliMD/alwatr/commit/8b0317db88ed73604a27935a3a30cd5c31cb0804))
* **logger:** complete refactor the logger with new API and fix show correct line number ([7efe8cf](https://github.com/AliMD/alwatr/commit/7efe8cf0f566e148406f38fdd60fa3d747c9bc51))





# [0.3.0](https://github.com/AliMD/One/compare/v0.2.1...v0.3.0) (2022-03-06)
# [0.3.0](https://github.com/AliMD/alwatr/compare/v0.2.1...v0.3.0) (2022-03-06)

**Note:** Version bump only for package @vatr/demo
**Note:** Version bump only for package @alwatr/demo





## [0.2.1](https://github.com/AliMD/One/compare/v0.2.0...v0.2.1) (2022-03-05)
## [0.2.1](https://github.com/AliMD/alwatr/compare/v0.2.0...v0.2.1) (2022-03-05)

**Note:** Version bump only for package @vatr/demo
**Note:** Version bump only for package @alwatr/demo





# [0.2.0](https://github.com/AliMD/One/compare/v0.1.2...v0.2.0) (2022-03-05)
# [0.2.0](https://github.com/AliMD/alwatr/compare/v0.1.2...v0.2.0) (2022-03-05)


### Bug Fixes

* **util:** remove package ([b337d9a](https://github.com/AliMD/One/commit/b337d9a97c8f73c2a87e722b23a50718321d1648))
* **util:** remove package ([b337d9a](https://github.com/AliMD/alwatr/commit/b337d9a97c8f73c2a87e722b23a50718321d1648))





## [0.1.2](https://github.com/AliMD/One/compare/v0.1.1...v0.1.2) (2022-03-03)
## [0.1.2](https://github.com/AliMD/alwatr/compare/v0.1.1...v0.1.2) (2022-03-03)

**Note:** Version bump only for package @vatr/demo
**Note:** Version bump only for package @alwatr/demo





## [0.1.1](https://github.com/AliMD/One/compare/v0.1.0...v0.1.1) (2022-03-03)
## [0.1.1](https://github.com/AliMD/alwatr/compare/v0.1.0...v0.1.1) (2022-03-03)

**Note:** Version bump only for package @vatr/demo
**Note:** Version bump only for package @alwatr/demo



Expand All @@ -71,19 +71,19 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

### Bug Fixes

* add type module ([2649798](https://github.com/AliMD/One/commit/2649798c752138742cbdd14ee78768daa26f5b5a))
* **bug:** rootDir `src` to `.` ([4ad87ee](https://github.com/AliMD/One/commit/4ad87ee4a84b80afe563db5d42671ec9624ffce3))
* change all [@one](https://github.com/one) to [@vatr](https://github.com/vatr) ([e0573bf](https://github.com/AliMD/One/commit/e0573bf8b55c9e25bad3f7b407cc2c3d509f36d3))
* fix import module ([38dff29](https://github.com/AliMD/One/commit/38dff29a99e21f75f35be31bc11fb84e1f9d4a55))
* remove `src` and move all content to `root` ([3323322](https://github.com/AliMD/One/commit/33233220ed576f30249aa1197105219b62c65945))
* add type module ([2649798](https://github.com/AliMD/alwatr/commit/2649798c752138742cbdd14ee78768daa26f5b5a))
* **bug:** rootDir `src` to `.` ([4ad87ee](https://github.com/AliMD/alwatr/commit/4ad87ee4a84b80afe563db5d42671ec9624ffce3))
* change all [@one](https://github.com/one) to [@alwatr](https://github.com/alwatr) ([e0573bf](https://github.com/AliMD/alwatr/commit/e0573bf8b55c9e25bad3f7b407cc2c3d509f36d3))
* fix import module ([38dff29](https://github.com/AliMD/alwatr/commit/38dff29a99e21f75f35be31bc11fb84e1f9d4a55))
* remove `src` and move all content to `root` ([3323322](https://github.com/AliMD/alwatr/commit/33233220ed576f30249aa1197105219b62c65945))


### Features

* build demo ([e50b310](https://github.com/AliMD/One/commit/e50b3106f428a2a11cc0d960970017d564caa017))
* build index ([93b604f](https://github.com/AliMD/One/commit/93b604f44d43eedec5df1dd47ad84b96a99ed9b7))
* demo html ([de43204](https://github.com/AliMD/One/commit/de432043c1b46f2c8f0d9c4f46580b31f3eee066))
* **demo:** add error and force sample ([0aa2edd](https://github.com/AliMD/One/commit/0aa2edd896b417ea79a249f3332ad629e80a17fa))
* **demo:** add vatr logger demo ([f759a06](https://github.com/AliMD/One/commit/f759a06f65545d3589a136f2b9a553dfdb1f2af2))
* **demo:** vatr logger demo ([302c6f4](https://github.com/AliMD/One/commit/302c6f46fcc00796e6c030c6fe98a6c2b9f21d04))
* **svg-icon:** init svg-icon package (ionicons) ([#14](https://github.com/AliMD/One/issues/14)) ([5b3a8f6](https://github.com/AliMD/One/commit/5b3a8f67f5676e0a2139cfa30b60666190c991cf))
* build demo ([e50b310](https://github.com/AliMD/alwatr/commit/e50b3106f428a2a11cc0d960970017d564caa017))
* build index ([93b604f](https://github.com/AliMD/alwatr/commit/93b604f44d43eedec5df1dd47ad84b96a99ed9b7))
* demo html ([de43204](https://github.com/AliMD/alwatr/commit/de432043c1b46f2c8f0d9c4f46580b31f3eee066))
* **demo:** add error and force sample ([0aa2edd](https://github.com/AliMD/alwatr/commit/0aa2edd896b417ea79a249f3332ad629e80a17fa))
* **demo:** add alwatr logger demo ([f759a06](https://github.com/AliMD/alwatr/commit/f759a06f65545d3589a136f2b9a553dfdb1f2af2))
* **demo:** alwatr logger demo ([302c6f4](https://github.com/AliMD/alwatr/commit/302c6f46fcc00796e6c030c6fe98a6c2b9f21d04))
* **svg-icon:** init svg-icon package (ionicons) ([#14](https://github.com/AliMD/alwatr/issues/14)) ([5b3a8f6](https://github.com/AliMD/alwatr/commit/5b3a8f67f5676e0a2139cfa30b60666190c991cf))
2 changes: 1 addition & 1 deletion demo/logger/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {createLogger} from '@vatr/logger';
import {createLogger} from '@alwatr/logger';

const logger = createLogger('logger/demo', 'green');

Expand Down
22 changes: 3 additions & 19 deletions demo/package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
{
"name": "@vatr/demo",
"name": "@alwatr/demo",
"version": "0.5.0",
"description": "@vatr packages demo",
"main": "index.js",
"author": "@vatr community",
"author": "S. Ali Mihandoost <[email protected]> (https://ali.mihandoost.com)",
"type": "module",
"private": "true",
"repository": {
"type": "git",
"url": "https://github.com/AliMD/One/tree/next/demo"
},
"files": [
"*.js",
"*.js.map",
"*.d.ts",
"*.d.ts.map",
"*.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"contributors": [
"MohammadMahdi Zamanian <[email protected]>"
],
"dependencies": {
"@vatr/logger": "^0.5.0",
"@alwatr/logger": "^0.5.0",
"lit": "^2.1.3",
"tslib": "^2.2.0"
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vatr",
"description": "The Vatr Library",
"repository": "https://github.com/AliMD/One",
"name": "alwatr",
"description": "The Alwatr Library",
"repository": "https://github.com/AliMD/alwatr/",
"author": "S. Ali Mihandoost <[email protected]> (https://ali.mihandoost.com)",
"license": "MIT",
"private": true,
Expand Down
49 changes: 15 additions & 34 deletions package/fetch/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,34 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.5.0](https://github.com/AliMD/vatr/compare/v0.4.0...v0.5.0) (2022-03-11)
# [0.5.0](https://github.com/AliMD/alwatr/compare/v0.4.0...v0.5.0) (2022-03-11)

**Note:** Version bump only for package @vatr/fetch





# [0.4.0](https://github.com/AliMD/vatr/compare/v0.3.0...v0.4.0) (2022-03-11)
**Note:** Version bump only for package @alwatr/fetch

# [0.4.0](https://github.com/AliMD/alwatr/compare/v0.3.0...v0.4.0) (2022-03-11)

### Bug Fixes

* **fetch:** build issue [#73](https://github.com/AliMD/vatr/issues/73) ([fb74463](https://github.com/AliMD/vatr/commit/fb74463d367393706d16e482488a565bdfef70a1))





# [0.3.0](https://github.com/AliMD/vatr/compare/v0.2.1...v0.3.0) (2022-03-06)
* **fetch:** build issue [#73](https://github.com/AliMD/alwatr/issues/73) ([fb74463](https://github.com/AliMD/alwatr/commit/fb74463d367393706d16e482488a565bdfef70a1))

**Note:** Version bump only for package @vatr/fetch
# [0.3.0](https://github.com/AliMD/alwatr/compare/v0.2.1...v0.3.0) (2022-03-06)

**Note:** Version bump only for package @alwatr/fetch

## [0.2.1](https://github.com/AliMD/alwatr/compare/v0.2.0...v0.2.1) (2022-03-05)

**Note:** Version bump only for package @alwatr/fetch


## [0.2.1](https://github.com/AliMD/vatr/compare/v0.2.0...v0.2.1) (2022-03-05)

**Note:** Version bump only for package @vatr/fetch





# [0.2.0](https://github.com/AliMD/vatr/compare/v0.1.2...v0.2.0) (2022-03-05)

# [0.2.0](https://github.com/AliMD/alwatr/compare/v0.1.2...v0.2.0) (2022-03-05)

### Bug Fixes

* **fetch:** error codes ([4e0be80](https://github.com/AliMD/vatr/commit/4e0be80786b6667035ae82750f2351bd2da4f341))

* **fetch:** error codes ([4e0be80](https://github.com/AliMD/alwatr/commit/4e0be80786b6667035ae82750f2351bd2da4f341))

### Features

* **fetch:** add getData ([4a627c4](https://github.com/AliMD/vatr/commit/4a627c43d2ad07acb340f058f02d41ce57288405))
* **fetch:** add postData and fetchJson ([b0262b8](https://github.com/AliMD/vatr/commit/b0262b83b5b7d8b7c376dce68aae3e16bd8e2610))
* **fetch:** base fetch api ([925cdab](https://github.com/AliMD/vatr/commit/925cdab8700ffb801e1d836ffc5d3245b66815cf))
* **fetch:** FetchOptions type ([dd2d141](https://github.com/AliMD/vatr/commit/dd2d1418d090387e1afa8277f78ae88ace17fd17))
* **fetch:** new enhanced fetch package ([7e90472](https://github.com/AliMD/vatr/commit/7e904720c983372317358ce107f6ad0f79c65647))
* **fetch:** add getData ([4a627c4](https://github.com/AliMD/alwatr/commit/4a627c43d2ad07acb340f058f02d41ce57288405))
* **fetch:** add postData and fetchJson ([b0262b8](https://github.com/AliMD/alwatr/commit/b0262b83b5b7d8b7c376dce68aae3e16bd8e2610))
* **fetch:** base fetch api ([925cdab](https://github.com/AliMD/alwatr/commit/925cdab8700ffb801e1d836ffc5d3245b66815cf))
* **fetch:** FetchOptions type ([dd2d141](https://github.com/AliMD/alwatr/commit/dd2d1418d090387e1afa8277f78ae88ace17fd17))
* **fetch:** new enhanced fetch package ([7e90472](https://github.com/AliMD/alwatr/commit/7e904720c983372317358ce107f6ad0f79c65647))
4 changes: 2 additions & 2 deletions package/fetch/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @vatr/fetch
# @alwatr/fetch

Enhanced fetch API with the timeout, helper methods, and types written in tiny TypeScript, ES module.

Expand All @@ -14,7 +14,7 @@ Options have two other parameters:
## Example usage

```js
import {getJson} from 'https://esm.run/@vatr/fetch';
import {getJson} from 'https://esm.run/@alwatr/fetch';

const productList = await getJson('/api/products', {limit: 10}, {timeout: 5_000});
```
13 changes: 6 additions & 7 deletions package/fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vatr/fetch",
"name": "@alwatr/fetch",
"version": "0.5.0",
"description": "Enhanced fetch api with timeout, helper methods and types written in tiny TypeScript module.",
"keywords": [
Expand All @@ -9,8 +9,7 @@
"timeout",
"typescript",
"esm",
"vatr",
"alvatr"
"alwatr"
],
"main": "fetch.js",
"type": "module",
Expand All @@ -29,15 +28,15 @@
},
"repository": {
"type": "git",
"url": "https://github.com/AliMD/vatr",
"url": "https://github.com/AliMD/alwatr",
"directory": "package/fetch"
},
"homepage": "https://github.com/AliMD/vatr/tree/main/package/fetch#readme",
"homepage": "https://github.com/AliMD/alwatr/tree/main/package/fetch#readme",
"bugs": {
"url": "https://github.com/AliMD/vatr/issues"
"url": "https://github.com/AliMD/alwatr/issues"
},
"dependencies": {
"@vatr/logger": "^0.5.0",
"@alwatr/logger": "^0.5.0",
"tslib": "^2.3.1"
}
}
Loading

0 comments on commit 0b5481e

Please sign in to comment.