Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAnnalyst committed Nov 6, 2021
1 parent a3a8a43 commit d1b8a2a
Show file tree
Hide file tree
Showing 26 changed files with 56 additions and 289 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

### v0.3.0
- Teams no longer have their own SQL table; you will need to `DROP COLUMN associated_team` on your `matches` tables if you use SQLite as a backend.
- Many methods that work with teams have been removed; instead, manipulate matches.
- The JSON backend is no longer supported; it may work but should not be relied upon in production. SQLite is simple enough to install and set up that it should not present a barrier to usage
- As per the [semver specification](https://semver.org/), "[the] major version zero (0.y.z) is for initial development ... [t]he public API SHOULD NOT be considered stable." Thus, this **breaking change** does not necessitate a v1 release.
- `StorageBackend#getMatchByNumber` has been removed.

### v0.2.0
- Support TypeScript 4.4 and Node.js versions 16.x and 17.x
- Add `StorageBackend#getMatchesByNumber` and support associating multiple `Match` objects with one match
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
frc-scouting / [Exports](modules.md)
@bread5940/frc-scouting / [Exports](modules.md)

# frc-scouting
![tests](https://github.com/TheAnnalyst/frc-scouting/workflows/tests/badge.svg?branch=main) [![coverage](https://codecov.io/gh/TheAnnalyst/frc-scouting/branch/main/graph/badge.svg?token=AL02Q8BYwp)](https://codecov.io/gh/TheAnnalyst/frc-scouting) [![npm version](https://badge.fury.io/js/frc-scouting.svg)](https://badge.fury.io/js/frc-scouting)
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/DeepSpace.CargoTracker.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / CargoTracker
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / CargoTracker

# Class: CargoTracker

Expand Down
6 changes: 3 additions & 3 deletions docs/classes/DeepSpace.DeepSpaceJSON.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / DeepSpaceJSON
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / DeepSpaceJSON

# Class: DeepSpaceJSON

Expand Down Expand Up @@ -51,7 +51,7 @@ Checks if this storage plan applies

#### Defined in

games/deep-space.ts:288
games/deep-space.ts:278

___

Expand All @@ -77,4 +77,4 @@ JSON => Match

#### Defined in

games/deep-space.ts:295
games/deep-space.ts:285
2 changes: 1 addition & 1 deletion docs/classes/DeepSpace.DeepSpaceMatch.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / DeepSpaceMatch
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / DeepSpaceMatch

# Class: DeepSpaceMatch

Expand Down
83 changes: 1 addition & 82 deletions docs/classes/DeepSpace.DeepSpaceSQL.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / DeepSpaceSQL
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / DeepSpaceSQL

# Class: DeepSpaceSQL

Expand Down Expand Up @@ -30,12 +30,9 @@ Stores Deep Space teams/matches in SQLite
- [dbDataToMatch](DeepSpace.DeepSpaceSQL.md#dbdatatomatch)
- [dbDataToTeam](DeepSpace.DeepSpaceSQL.md#dbdatatoteam)
- [deleteMatches](DeepSpace.DeepSpaceSQL.md#deletematches)
- [deleteTeams](DeepSpace.DeepSpaceSQL.md#deleteteams)
- [getMatches](DeepSpace.DeepSpaceSQL.md#getmatches)
- [getStatement](DeepSpace.DeepSpaceSQL.md#getstatement)
- [getTeams](DeepSpace.DeepSpaceSQL.md#getteams)
- [insertMatch](DeepSpace.DeepSpaceSQL.md#insertmatch)
- [insertTeam](DeepSpace.DeepSpaceSQL.md#insertteam)

## Constructors

Expand Down Expand Up @@ -203,32 +200,6 @@ storage/sqlite.ts:63

___

### deleteTeams

**deleteTeams**(`conditions`): `void`

deletes teams

#### Parameters

| Name | Type |
| :------ | :------ |
| `conditions` | { `column`: `string` ; `value`: `string` \| `number` }[] |

#### Returns

`void`

#### Inherited from

[SQLStoragePlan](SQLStoragePlan.md).[deleteTeams](SQLStoragePlan.md#deleteteams)

#### Defined in

storage/sqlite.ts:80

___

### getMatches

**getMatches**(`conditions`): [`DeepSpaceMatch`](DeepSpace.DeepSpaceMatch.md)[]
Expand Down Expand Up @@ -281,32 +252,6 @@ storage/sqlite.ts:38

___

### getTeams

**getTeams**(`conditions`): [`Team`](Team.md)<[`DeepSpaceMatch`](DeepSpace.DeepSpaceMatch.md)\>[]

gets teams

#### Parameters

| Name | Type |
| :------ | :------ |
| `conditions` | { `column`: `string` ; `value`: `string` \| `number` }[] |

#### Returns

[`Team`](Team.md)<[`DeepSpaceMatch`](DeepSpace.DeepSpaceMatch.md)\>[]

#### Inherited from

[SQLStoragePlan](SQLStoragePlan.md).[getTeams](SQLStoragePlan.md#getteams)

#### Defined in

storage/sqlite.ts:73

___

### insertMatch

**insertMatch**(`match`): `void`
Expand All @@ -330,29 +275,3 @@ Inserts a match
#### Defined in

games/deep-space.ts:270

___

### insertTeam

**insertTeam**(`team`): `void`

Inserts a team

#### Parameters

| Name | Type |
| :------ | :------ |
| `team` | [`Team`](Team.md)<[`DeepSpaceMatch`](DeepSpace.DeepSpaceMatch.md)\> |

#### Returns

`void`

#### Overrides

[SQLStoragePlan](SQLStoragePlan.md).[insertTeam](SQLStoragePlan.md#insertteam)

#### Defined in

games/deep-space.ts:275
2 changes: 1 addition & 1 deletion docs/classes/DeepSpace.HatchPanelTracker.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / HatchPanelTracker
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [DeepSpace](../modules/DeepSpace.md) / HatchPanelTracker

# Class: HatchPanelTracker

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/GamePieceTracker.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / GamePieceTracker
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / GamePieceTracker

# Class: GamePieceTracker

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/InfiniteRecharge.ColorWheel.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / ColorWheel
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / ColorWheel

# Class: ColorWheel

Expand Down
6 changes: 3 additions & 3 deletions docs/classes/InfiniteRecharge.InfiniteRechargeJSON.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / InfiniteRechargeJSON
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / InfiniteRechargeJSON

# Class: InfiniteRechargeJSON

Expand Down Expand Up @@ -51,7 +51,7 @@ Checks if it applies

#### Defined in

games/infinite-recharge.ts:328
games/infinite-recharge.ts:319

___

Expand All @@ -77,4 +77,4 @@ JSON => match

#### Defined in

games/infinite-recharge.ts:337
games/infinite-recharge.ts:328
2 changes: 1 addition & 1 deletion docs/classes/InfiniteRecharge.InfiniteRechargeMatch.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / InfiniteRechargeMatch
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / InfiniteRechargeMatch

# Class: InfiniteRechargeMatch

Expand Down
83 changes: 1 addition & 82 deletions docs/classes/InfiniteRecharge.InfiniteRechargeSQL.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / InfiniteRechargeSQL
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / InfiniteRechargeSQL

# Class: InfiniteRechargeSQL

Expand Down Expand Up @@ -30,12 +30,9 @@ Stores Infinite Recharge teams/matches in SQL
- [dbDataToMatch](InfiniteRecharge.InfiniteRechargeSQL.md#dbdatatomatch)
- [dbDataToTeam](InfiniteRecharge.InfiniteRechargeSQL.md#dbdatatoteam)
- [deleteMatches](InfiniteRecharge.InfiniteRechargeSQL.md#deletematches)
- [deleteTeams](InfiniteRecharge.InfiniteRechargeSQL.md#deleteteams)
- [getMatches](InfiniteRecharge.InfiniteRechargeSQL.md#getmatches)
- [getStatement](InfiniteRecharge.InfiniteRechargeSQL.md#getstatement)
- [getTeams](InfiniteRecharge.InfiniteRechargeSQL.md#getteams)
- [insertMatch](InfiniteRecharge.InfiniteRechargeSQL.md#insertmatch)
- [insertTeam](InfiniteRecharge.InfiniteRechargeSQL.md#insertteam)

## Constructors

Expand Down Expand Up @@ -203,32 +200,6 @@ storage/sqlite.ts:63

___

### deleteTeams

**deleteTeams**(`conditions`): `void`

deletes teams

#### Parameters

| Name | Type |
| :------ | :------ |
| `conditions` | { `column`: `string` ; `value`: `string` \| `number` }[] |

#### Returns

`void`

#### Inherited from

[SQLStoragePlan](SQLStoragePlan.md).[deleteTeams](SQLStoragePlan.md#deleteteams)

#### Defined in

storage/sqlite.ts:80

___

### getMatches

**getMatches**(`conditions`): [`InfiniteRechargeMatch`](InfiniteRecharge.InfiniteRechargeMatch.md)[]
Expand Down Expand Up @@ -281,32 +252,6 @@ storage/sqlite.ts:38

___

### getTeams

**getTeams**(`conditions`): [`Team`](Team.md)<[`InfiniteRechargeMatch`](InfiniteRecharge.InfiniteRechargeMatch.md)\>[]

gets teams

#### Parameters

| Name | Type |
| :------ | :------ |
| `conditions` | { `column`: `string` ; `value`: `string` \| `number` }[] |

#### Returns

[`Team`](Team.md)<[`InfiniteRechargeMatch`](InfiniteRecharge.InfiniteRechargeMatch.md)\>[]

#### Inherited from

[SQLStoragePlan](SQLStoragePlan.md).[getTeams](SQLStoragePlan.md#getteams)

#### Defined in

storage/sqlite.ts:73

___

### insertMatch

**insertMatch**(`match`): `void`
Expand All @@ -330,29 +275,3 @@ Inserts a match
#### Defined in

games/infinite-recharge.ts:269

___

### insertTeam

**insertTeam**(`team`): `void`

Inserts a team

#### Parameters

| Name | Type |
| :------ | :------ |
| `team` | [`Team`](Team.md)<[`InfiniteRechargeMatch`](InfiniteRecharge.InfiniteRechargeMatch.md)\> |

#### Returns

`void`

#### Overrides

[SQLStoragePlan](SQLStoragePlan.md).[insertTeam](SQLStoragePlan.md#insertteam)

#### Defined in

games/infinite-recharge.ts:274
2 changes: 1 addition & 1 deletion docs/classes/InfiniteRecharge.PowerCellTracker.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / PowerCellTracker
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / PowerCellTracker

# Class: PowerCellTracker

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/InfiniteRecharge.ShieldGenerator.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / ShieldGenerator
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / [InfiniteRecharge](../modules/InfiniteRecharge.md) / ShieldGenerator

# Class: ShieldGenerator

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/JSONBackend.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / JSONBackend
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / JSONBackend

# Class: JSONBackend

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Match.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[frc-scouting](../README.md) / [Exports](../modules.md) / Match
[@bread5940/frc-scouting](../README.md) / [Exports](../modules.md) / Match

# Class: Match

Expand Down
Loading

0 comments on commit d1b8a2a

Please sign in to comment.