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

⬆️ (deps) [email protected] [skip ci] #1777

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion config/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eslint-plugin-tailwindcss": "3.17.5",
"eslint-plugin-testing-library": "6.4.0",
"eslint-plugin-turbo": "2.2.3",
"typescript-eslint": "8.11.0"
"typescript-eslint": "8.12.1"
},
"devDependencies": {
"@types/eslint__js": "8.42.3",
Expand Down
4 changes: 1 addition & 3 deletions packages/conventional-gitmoji/src/types/releaseRule.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ type IReleaseRuleProps = {
value?: ICommit
}

type IReleaseRule = {
[key in ICommit]?: IReleaseRuleProps
}
type IReleaseRule = Partial<Record<ICommit, IReleaseRuleProps>>
export type { IReleaseRule, IReleaseRuleProps }
51 changes: 25 additions & 26 deletions packages/notion/src/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,33 @@ type DatabaseType =
| 'VENUES'

type DataTypes = 'LISTING' | 'LISTING_BY_DATE' | 'SLUG' | 'SLUG_BY_ROUTE'
type DataTypesObject = {
[id in DataTypes]: DataTypes
}
type DataTypesObject = Record<DataTypes, DataTypes>

type DatabaseInfo = {
[key in DatabaseType]?: {
active: boolean
database_id: string
dataTypes: DataTypes[]
// @todo(next-notion) move to `isChild`
hasChild: null | string
infoType: any
isChild: null | string
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
isChildInfoType: any | null
name: string
page_id__seo: string
routeMeta: boolean
routeType: string
skipStaticPaths: boolean
slug: string
ttl: number
}
}
type DatabaseInfo = Partial<
Record<
DatabaseType,
{
active: boolean
database_id: string
dataTypes: DataTypes[]
// @todo(next-notion) move to `isChild`
hasChild: null | string
infoType: any
isChild: null | string
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
isChildInfoType: any | null
name: string
page_id__seo: string
routeMeta: boolean
routeType: string
skipStaticPaths: boolean
slug: string
ttl: number
}
>
>

type Databases = {
[key in DatabaseType]: DatabaseType
}
type Databases = Record<DatabaseType, DatabaseType>

interface Relation {
database_id: string
Expand Down
10 changes: 3 additions & 7 deletions packages/spotify/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const API_VERSION = 'v1'

type Endpoint = 'ARTISTS' | 'NOW_PLAYING' | 'TOP_ARTISTS' | 'TOP_TRACKS'
type EndPoints = {
[x in Endpoint]: string
}
type EndPoints = Record<Endpoint, string>

const ENDPOINTS: EndPoints = {
ARTISTS: `artists`,
Expand All @@ -13,9 +11,7 @@ const ENDPOINTS: EndPoints = {
}

type Url = 'BASE' | 'TOKEN'
type Urls = {
[x in Url]: string
}
type Urls = Record<Url, string>
const URL: Urls = {
BASE: 'https://api.spotify.com',
TOKEN: 'https://accounts.spotify.com/api/token',
Expand All @@ -28,7 +24,7 @@ const OMIT_FIELDS = ['album', 'artists', 'available_markets']

// @todo(package.json) dynamic please
const PACKAGE_NAME = '@jeromefitz/spotify'
const PACKAGE_VERSION = '2.1.0'
const PACKAGE_VERSION = '4.0.14'

export {
API_VERSION,
Expand Down
130 changes: 122 additions & 8 deletions pnpm-lock.yaml

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