Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Add update v1.1.0
Browse files Browse the repository at this point in the history
- Remove fs-ext and reflect the new concurrency problem
- Fix a bug that happend when a database game with invalid values was loaded
- Add methods to the API of Celes
    - addGame()
    - removeManaullyAddedGame()
    - unlockAchievement()
    - removeManuallyUnlockedAchievement()
- Add tests for the new methods
- Minor fixes
  • Loading branch information
msolefonte authored Nov 14, 2020
1 parent 9d3f929 commit 0490edb
Show file tree
Hide file tree
Showing 14 changed files with 562 additions and 173 deletions.
17 changes: 9 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ module.exports = {
],
rules: {
'quotes': [2, 'single', { 'avoidEscape': true }],
'sort-imports': ['error', {
'ignoreCase': false,
'ignoreDeclarationSort': false,
'ignoreMemberSort': false,
'memberSyntaxSortOrder': ['none', 'all', 'multiple', 'single'],
'allowSeparatedGroups': false
}],
'sort-class-members/sort-class-members': [2, {
'order': [
'[static-properties]',
Expand All @@ -29,6 +22,14 @@ module.exports = {
'[conventional-private-methods]'
],
'accessorPairPositioning': 'getThenSet',
}]
}],
'sort-imports': ['error', {
'ignoreCase': false,
'ignoreDeclarationSort': false,
'ignoreMemberSort': false,
'memberSyntaxSortOrder': ['none', 'all', 'multiple', 'single'],
'allowSeparatedGroups': false
}],
'sort-vars': ['error', {}]
}
};
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Achievement progress
- Achievement unlock time
- Achievement unlock time (with useOldestUnlockTime flag set to false)

## [1.1.0] - 13/11/2020

- Remove fs-ext and reflect the new concurrency problem
- Fix a bug that happend when a database game with invalid values was loaded
- Add methods to the API of Celes
- addGame()
- removeManaullyAddedGame()
- unlockAchievement()
- removeManuallyUnlockedAchievement()
- Add tests for the new methods
- Minor fixes
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,30 @@ async export(filePath: string): Promise<void> {};
async import(filePath: string, force?: boolean): Promise<GameData[]> {};
```

##### Add Game

```
async addGame(appId: string, platform: Platform): Promise<void> {};
```

##### Remove manually added Game

```
async removeManuallAddedGame(appId: string, platform: Platform): Promise<void> {};
```

##### Unlock Achievement

```
async unlockAchievement(appId: string, platform: Platform, achievementId: string, unlockTime = 0): Promise<void> {};
```

##### Remove Manually Unlocked Achievement

```
async removeManuallyUnlockedAchievement(appId: string, platform: Platform, achievementId: string): Promise<void> {};
```

##### Set Achievement Unlock Time

```
Expand Down
143 changes: 64 additions & 79 deletions package-lock.json

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

Loading

0 comments on commit 0490edb

Please sign in to comment.