Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge branch next into main #565

Open
wants to merge 128 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
e0989d2
chore: rename and cleanup simple examples
ShaggyTech May 31, 2023
d18e6cd
chore(deps): update pnpm to v8.6.0
ShaggyTech May 31, 2023
5369d99
docs(components): add simple VinDecoder component
ShaggyTech Oct 22, 2023
ca84278
fix(output): fix export file paths in package.json
ShaggyTech Oct 22, 2023
4a6237e
chore(deps): update pnpm to v8.9.2
renovate[bot] Oct 22, 2023
571840b
chore(deps): update pnpm/action-setup action to v2.4.0
renovate[bot] Oct 22, 2023
28ba656
chore(deps): update vitest monorepo
renovate[bot] Oct 22, 2023
ccbbecb
fix(deps): update typescript-eslint monorepo to v5.62.0
renovate[bot] Oct 22, 2023
59df048
chore(deps): update actions/checkout action to v4
renovate[bot] Oct 22, 2023
45942d3
fix(tests): deprecated coverage-c8, switch to coverage-v8
ShaggyTech Oct 24, 2023
41fa2aa
Merge pull request #512 from ShaggyTech/renovate/vitest-monorepo
ShaggyTech Oct 24, 2023
f8800bd
chore(deps): update commitlint monorepo to v17.8.1
renovate[bot] Oct 24, 2023
e1d23a9
chore(deps): update actions/setup-node action to v4
renovate[bot] Oct 24, 2023
a106a06
Merge pull request #520 from ShaggyTech/renovate/commitlint-monorepo
ShaggyTech Oct 24, 2023
8f2ad57
chore(deps): update dependency @changesets/cli to v2.26.2
renovate[bot] Oct 24, 2023
51e03ab
chore(deps): update dependency vite-plugin-pwa to v0.16.5
renovate[bot] Oct 24, 2023
c16e473
Merge pull request #529 from ShaggyTech/renovate/pnpm-8.x
ShaggyTech Oct 24, 2023
1999b61
Merge pull request #530 from ShaggyTech/renovate/typescript-eslint-mo…
ShaggyTech Oct 24, 2023
5b3faca
Merge pull request #531 from ShaggyTech/renovate/vite-plugin-pwa-0.x
ShaggyTech Oct 24, 2023
1e912bd
chore(deps): update dependency dotenv to v16.3.1
renovate[bot] Oct 24, 2023
97b3b1a
chore(deps): update dependency turbo to v1.10.16
renovate[bot] Oct 24, 2023
78b7598
chore(deps): update dependency workbox-window to v7
renovate[bot] Oct 24, 2023
22558c8
Merge pull request #534 from ShaggyTech/renovate/turbo-monorepo
ShaggyTech Oct 24, 2023
97d849e
Merge pull request #532 from ShaggyTech/renovate/dotenv-16.x
ShaggyTech Oct 24, 2023
caa3e8b
chore(deps): update dependency rimraf to v5.0.5
renovate[bot] Oct 24, 2023
f3a3a6c
Merge pull request #535 from ShaggyTech/renovate/major-workbox-monorepo
ShaggyTech Oct 24, 2023
a8393f7
chore(deps): update dependency typescript to v5.2.2
renovate[bot] Oct 24, 2023
345fded
fix(deps): update dependency @types/node to v18.18.6
renovate[bot] Oct 24, 2023
d72dc51
Merge pull request #536 from ShaggyTech/renovate/typescript-5.x
ShaggyTech Oct 24, 2023
6ee1478
chore(deps): update dependency vite-tsconfig-paths to v4.2.1
renovate[bot] Oct 24, 2023
95c4a57
chore(deps): update dependency eslint to v8.52.0
renovate[bot] Oct 24, 2023
3ae264f
chore(deps): update dependency typedoc to v0.25.2
renovate[bot] Oct 24, 2023
0e16eb1
Merge pull request #537 from ShaggyTech/renovate/eslint-8.x
ShaggyTech Oct 24, 2023
134ffd7
Merge pull request #538 from ShaggyTech/renovate/node-18.x
ShaggyTech Oct 24, 2023
f0da70a
fix(deps): update dependency eslint-plugin-markdown to v3.0.1
renovate[bot] Oct 24, 2023
cdbc582
chore(deps): update dependency vitepress to v1.0.0-rc.23
renovate[bot] Oct 24, 2023
e8c5574
Merge pull request #541 from ShaggyTech/renovate/changesets-cli-2.x
ShaggyTech Oct 24, 2023
8569df2
chore(deps): update dependency @vite-pwa/vitepress to v0.2.3
renovate[bot] Oct 24, 2023
f35819d
Merge pull request #542 from ShaggyTech/renovate/rimraf-5.x
ShaggyTech Oct 24, 2023
bc40b8a
Merge pull request #543 from ShaggyTech/renovate/vite-tsconfig-paths-4.x
ShaggyTech Oct 24, 2023
430e710
fix(docs): vitepress broken after update, add type:module to docs pkg…
ShaggyTech Oct 24, 2023
5d06c2f
Merge pull request #544 from ShaggyTech/renovate/vitepress-1.x
ShaggyTech Oct 24, 2023
7cfb57b
Merge pull request #545 from ShaggyTech/renovate/eslint-plugin-markdo…
ShaggyTech Oct 24, 2023
a8d27fe
Merge pull request #547 from ShaggyTech/renovate/vite-pwa-vitepress-0.x
ShaggyTech Oct 24, 2023
c8a746e
Merge pull request #549 from ShaggyTech/renovate/typedoc-0.x
ShaggyTech Oct 24, 2023
2df0342
Merge pull request #554 from ShaggyTech/renovate/actions-checkout-4.x
ShaggyTech Oct 24, 2023
6e0a8ad
Merge pull request #552 from ShaggyTech/renovate/pnpm-action-setup-2.x
ShaggyTech Oct 24, 2023
a60eb78
Merge pull request #561 from ShaggyTech/renovate/actions-setup-node-4.x
ShaggyTech Oct 24, 2023
0bd8663
fix(deps): update dependency vue to v3.3.7
renovate[bot] Oct 25, 2023
6edaa73
Merge pull request #546 from ShaggyTech/renovate/vue-monorepo
ShaggyTech Oct 25, 2023
32b1fd4
chore(deps): update dependency sass to v1.69.4
renovate[bot] Oct 25, 2023
7eee458
chore(deps): update dependency typedoc-plugin-markdown to v3.16.0
renovate[bot] Oct 25, 2023
fd5bc25
fix(deps): update dependency eslint-config-prettier to v8.10.0
renovate[bot] Oct 25, 2023
7cf0243
fix(deps): update typescript-eslint monorepo to v6
renovate[bot] Oct 25, 2023
cac3f83
Merge pull request #548 from ShaggyTech/renovate/sass-1.x
ShaggyTech Oct 25, 2023
2bfb171
chore(deps): update dependency vite to v4.5.0
renovate[bot] Oct 25, 2023
dc4a07a
Merge pull request #550 from ShaggyTech/renovate/typedoc-plugin-markd…
ShaggyTech Oct 25, 2023
6706ee0
Merge pull request #551 from ShaggyTech/renovate/vite-4.x
ShaggyTech Oct 25, 2023
787acda
Merge pull request #553 from ShaggyTech/renovate/eslint-config-pretti…
ShaggyTech Oct 25, 2023
aea7513
chore(deps): update commitlint monorepo to v18
renovate[bot] Oct 25, 2023
d76ac99
Merge pull request #560 from ShaggyTech/renovate/major-typescript-esl…
ShaggyTech Oct 25, 2023
78b187f
fix(deps): update dependency eslint-config-prettier to v9
renovate[bot] Oct 25, 2023
4c444cc
Merge pull request #555 from ShaggyTech/renovate/major-commitlint-mon…
ShaggyTech Oct 25, 2023
ccba2a4
chore(deps): update dependency vitepress to v1.0.0-rc.24
renovate[bot] Oct 25, 2023
ea870a0
chore(deps): update dependency vite-plugin-dts to v3
renovate[bot] Oct 25, 2023
bf41e98
Merge pull request #563 from ShaggyTech/renovate/vitepress-1.x
ShaggyTech Oct 25, 2023
b295c78
Merge pull request #557 from ShaggyTech/renovate/vite-plugin-dts-3.x
ShaggyTech Oct 25, 2023
cc2a712
Merge pull request #558 from ShaggyTech/renovate/eslint-config-pretti…
ShaggyTech Oct 25, 2023
3af965e
chore(deps): update dependency prettier to v3
renovate[bot] Oct 25, 2023
c578166
Merge pull request #556 from ShaggyTech/renovate/prettier-3.x
ShaggyTech Oct 25, 2023
e3425cd
fix(deps): update dependency eslint-plugin-prettier to v5
renovate[bot] Oct 25, 2023
66376ee
Merge pull request #559 from ShaggyTech/renovate/eslint-plugin-pretti…
ShaggyTech Oct 25, 2023
87b5074
fix(deps): update dependency @types/node to v18.18.7
renovate[bot] Oct 25, 2023
f0b1353
Merge pull request #564 from ShaggyTech/renovate/node-18.x
ShaggyTech Oct 25, 2023
071b93b
Create hungry-stingrays-promise.md
ShaggyTech Oct 25, 2023
4fb31f8
chore(format): commit latest prettier output after updating
ShaggyTech Oct 26, 2023
ca86ea7
chore(format): add 'dev-dist' to eslint ignore list
ShaggyTech Oct 26, 2023
56f346c
chore(docs): commit latest typedoc output after dep updates
ShaggyTech Oct 27, 2023
d2e3402
chore(deps): update typedoc-plugin-markdown to @next version
ShaggyTech Oct 30, 2023
0c62d30
chore(docs): commit latest typedoc output
ShaggyTech Oct 30, 2023
add36ce
Merge pull request #573 from ShaggyTech/typedoc-plugin-markdown
ShaggyTech Oct 30, 2023
bb494aa
docs: rename /api to /guide/vpic, update all links
ShaggyTech Nov 8, 2023
d8191c7
refactor(lib): move VPIC endpoints from /api/endpoints to /api/vpic
ShaggyTech Nov 21, 2023
1d855d3
refactor(vpic): add missing invalid arguments check to some VPIC endp…
ShaggyTech Nov 21, 2023
49a9f57
test: add tests for src/index.ts exports
ShaggyTech Nov 21, 2023
f89f329
docs: fix dead links to vpic endpoints in typedocs
ShaggyTech Dec 5, 2023
183bbd1
docs: commit latest typedocs output
ShaggyTech Dec 5, 2023
be6d5d8
chore(deps): update dependencies
ShaggyTech Dec 5, 2023
a766855
chore: update .gitignore file
ShaggyTech Dec 5, 2023
ce82c4b
chore(pkg): update vite config, move coverage to .vitest/dist/coverage
ShaggyTech Dec 5, 2023
5292e63
chore(config): typedoc-config correctly exclude files
ShaggyTech Dec 5, 2023
aaf731b
typedocs: fix and add @module and @category jsdoc comments
ShaggyTech Dec 5, 2023
71f698a
refactor(useNHTSA): add functionality to support NHTSA APIs other tha…
ShaggyTech Dec 5, 2023
969aff2
refactor(argHandler): add functionality to validate values required b…
ShaggyTech Dec 5, 2023
b82adfa
chore: improve comments for getTypeof function
ShaggyTech Dec 5, 2023
5f5360b
refactor(queryString): all undefined values in QueryStringTypes
ShaggyTech Dec 5, 2023
049a550
types: add Impossible and NoExtraProperties util types
ShaggyTech Dec 5, 2023
749394e
refactor(package): explicitly name exported types in src index
ShaggyTech Dec 5, 2023
7de3680
refactor(package): after build rollup types into single index.d.ts file
ShaggyTech Dec 5, 2023
32fd5f3
docs(typedocs): add latest exports.md output
ShaggyTech Dec 5, 2023
c0f4c6f
feat(lib): add safetyRatings function wrapper for SafetyRatings API
ShaggyTech Dec 5, 2023
8cf1725
tests(pkg): improve utils/errorHandler tests
ShaggyTech Dec 7, 2023
32d0cec
tests(pkg): improve tests for utils/getTypeof
ShaggyTech Dec 7, 2023
ca17482
tests(pkg): improve tests for utils/isValidVin
ShaggyTech Dec 9, 2023
26499b8
tests(pkg): improve tests for utils/queryString
ShaggyTech Dec 10, 2023
b300efb
feat(lib): add function wrapper for Products API
ShaggyTech Dec 20, 2023
eadaece
feat(lib): add function wrapper for Recalls API, needs tests
ShaggyTech Dec 20, 2023
7cb86d8
lib: normalize all API responses to uppercase keys
ShaggyTech Dec 20, 2023
b69b88a
lib: update index imports
ShaggyTech Dec 20, 2023
1ec4008
chore: updat vscode settings
ShaggyTech Dec 20, 2023
ae6bbb3
lib: update safetyRatings folder structure to align with other API fu…
ShaggyTech Dec 20, 2023
4a80674
lib: begin proof of concept refactor on VPIC funtion names
ShaggyTech Dec 20, 2023
901c00d
lib(tests): add tests for recalls function
ShaggyTech Dec 20, 2023
6dfe379
lib(tests): improve products and safetyRatings tests
ShaggyTech Dec 20, 2023
35116f3
lib: correctly guard options object in non-vpic helper functions
ShaggyTech Dec 20, 2023
67f4df6
chore(lib): cleanup tests and comments for api functions
ShaggyTech Dec 21, 2023
fd428d9
feat(lib): add function wrapper for Complaints API
ShaggyTech Dec 21, 2023
98290b0
chore(lib): update exports and index tests with new functions
ShaggyTech Dec 21, 2023
7cc7efc
lib(api): rough draft overview of CSSIStation API before implementing
ShaggyTech Dec 21, 2023
8df30ac
lib(api): more notes on bug filled CSSIStation API
ShaggyTech Dec 22, 2023
75d2db8
lib(api): finish up notes about CSSI Station locator API
ShaggyTech Dec 22, 2023
8e3b5af
lib(utils): argHandler, add catchInvalidKeys(), refactor argHandler, …
ShaggyTech Dec 26, 2023
f8ecd1b
lib(api): simplify catching invalid keys in options objects
ShaggyTech Dec 26, 2023
37c346c
feat(lib): add function wrapper for CSSIStation API
ShaggyTech Dec 26, 2023
f5f73f6
lib: add cssiStation function and related types to exports
ShaggyTech Dec 26, 2023
fdf49a6
lib(api): finish description for cssiStation function
ShaggyTech Dec 27, 2023
7d98fc3
lib: start refactor of vpic functions and tests, start with decodeVin
ShaggyTech Dec 27, 2023
34ccde4
lib: add type tests and continue refactor in progress
ShaggyTech Dec 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .changeset/hungry-stingrays-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
"docs": patch
"@shaggytools/nhtsa-api-wrapper": patch
---

🛠️ Fixes

- fix(output): fix export file paths in published packages, add trailing `./` to all export paths in package.json; use correct export for `unpkg`
- fix(docs): vitepress broken after update, add type:module to docs package.json

🧪 Tests

- coverage: switch from coverage-c8 to coverage-v8, c8 is deprecated in vitest

🏡 Chores

- Add dependency `@vitest/coverage-v8` - `v1.0.1`
- Remove dependency `@vitest/coverage-c8`

- Update dependency `pnpm` to `v8.9.2`
- Update dependency `turbo` to `v1.10.16`
- Update dependency `typescript` to `v5.2.2`
- Update dependency `vue` to `v3.3.7`
- Update dependency `sass` to `v1.69.4`
- Update dependency `dotenv` to `v16.3.1`
- Update dependency `rimraf` to `v5.0.5`
- Update dependency `typedoc` to `v0.25.2`
- Update dependency `typedoc-plugin-markdown` to `v3.16.0`
- Update dependency `vite` to `v5.0.5`
- Update dependency `@vite-pwa/vitepress` to `v0.3.1`
- Update dependency `vitepress` to `v1.0.0-rc.31`
- Update dependency `vite-plugin-dts` to `v3.6.4`
- Update dependency `vite-plugin-pwa` to `v0.17.3`
- Update dependency `vite-tsconfig-paths` to `v4.2.1`
- Update dependency `vitest` to `v1.0.1`
- Update dependency `@vitest/ui` to `v1.0.1`
- Update dependency `prettier` to `v3.0.0`
- Update dependency `eslint` to `v8.52.0`
- Update dependency `eslint-config-prettier` to `v9.0.0`
- Update dependency `eslint-plugin-prettier` to `v5.0.0`
- Update dependency `eslint-plugin-markdown` to `v3.0.1`
- Update dependency `@typescript-eslint/eslint-plugin` to `v6.9.0`
- Update dependency `@typescript-eslint/parser` to `v6.9.0`
- Update dependency `@commitlint/cli` to `v18.1.0`
- Update dependency `@commitlint/config-conventional` to `v18.1.0`
- Update dependency `@changesets/cli` to `v2.26.2`
- Update dependency `@types/node` to `v18.18.7`
- Update dependency `workbox-window` to `v7.0.0`

Actions:
- Update github action `pnpm/action-setup` to `v2.4.0`
- Update github action `actions/checkout` to `v4.0.0`
- Update github action `actions/setup-node` to `v4.0.0`
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -45,7 +45,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/workflows/setup
Expand All @@ -60,7 +60,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/workflows/setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/workflows/setup
Expand All @@ -22,6 +22,6 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # don't add this token to PUBLIC repos or action will fail
files: ./packages/lib/coverage/coverage-final.json
files: ./packages/lib/.vitest/dist/coverage/coverage-final.json
name: "Upload Test Coverage" # optional
fail_ci_if_error: true # optional (default = false)
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/workflows/setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ runs:
using: "composite"
steps:
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v2.4.0

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ distDev/
docsDev/
dev-dist/

### Vite
**/vite.config.ts.timestamp*

### Vitepress
**/.vitepress/dist/**
**/.vitepress/cache/**

### Vitest
**/.vitest/dist/**
**/*/tsconfig.vitest-temp.json

### Turbo
.turbo

Expand Down Expand Up @@ -48,6 +55,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
!**/public/coverage

# nyc test coverage
.nyc_output
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.fixAll.eslint": true
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit"
},
"editor.formatOnPaste": false, // required
"editor.formatOnType": false, // required
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ WMIs, get all makes for a certain year, and more.
- [Install](https://vpic.shaggytech.com/guide/install)
- [Node Quick Start](https://vpic.shaggytech.com//guide/getting-started#node-quick-start)
- [Browser Quick Start](https://vpic.shaggytech.com/guide/getting-started#browser-quick-start)
- [API Reference](https://vpic.shaggytech.com/api/)
- [API Reference](https://vpic.shaggytech.com/guide/vpic/)

## Mono Repo Structure

Expand Down Expand Up @@ -129,9 +129,9 @@ const { Results } = await DecodeVinValues("WA1A4AFY2J2008189");
const decodedVehicle = Results[0]; // equals an object of type DecodeVinValuesResults
```

For a full example response see: [DecodeVinValues](https://vpic.shaggytech.com/api/endpoints/decode-vin-values#returns)
For a full example response see: [DecodeVinValues](https://vpic.shaggytech.com/guide/vpic/endpoints/decode-vin-values#returns)

All available endpoints can be found here: [VPIC API Endpoints](https://vpic.shaggytech.com/api/#vpic-api-endpoints)
All available endpoints can be found here: [VPIC API Endpoints](https://vpic.shaggytech.com/guide/vpic/#vpic-api-endpoints)

## Browser Install

Expand Down
1 change: 1 addition & 0 deletions apps/docs/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/typedoc/**
4 changes: 0 additions & 4 deletions apps/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ export default withPwa(
outline: 'deep',
nav: nav(),
sidebar: sidebar(),

// search: {
// provider: 'local',
// },
algolia: getAlgoliaConfig(process.env),

editLink: {
Expand Down
Loading
Loading