Skip to content

Commit

Permalink
build(deps-dev): bump @flex-development/tutils from 6.0.0-alpha.10 to…
Browse files Browse the repository at this point in the history
… 6.0.0-alpha.12

Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Jul 26, 2023
1 parent 0b62ace commit e7d5dc0
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 29 deletions.
20 changes: 13 additions & 7 deletions config/changelog.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ import {
type Commit
} from '@flex-development/commitlint-config'
import pathe from '@flex-development/pathe'
import { CompareResult, isNIL } from '@flex-development/tutils'
import {
CompareResult,
at,
includes,
isNIL,
select
} from '@flex-development/tutils'
import addStream from 'add-stream'
import conventionalChangelog from 'conventional-changelog'
import type { Options } from 'conventional-changelog-core'
Expand Down Expand Up @@ -198,10 +204,10 @@ sade('changelog', true)
return void apply(null, {
...commit,
committerDate: dateformat(commit.committerDate, 'yyyy-mm-dd', true),
mentions: commit.mentions.filter(m => m !== 'flexdevelopment'),
mentions: select(commit.mentions, m => m !== 'flexdevelopment'),
// @ts-expect-error ts(2322)
raw: commit,
references: commit.references.filter(ref => ref.action !== null),
references: select(commit.references, ref => ref.action !== null),
version: commit.gitTags ? vgx.exec(commit.gitTags)?.[1] : undefined
})
},
Expand Down Expand Up @@ -296,21 +302,21 @@ sade('changelog', true)
*
* @const {CommitEnhanced?} first_commit
*/
const first_commit: CommitEnhanced | undefined = commits.at(0)
const first_commit: CommitEnhanced | undefined = at(commits, 0)

/**
* Last commit in release.
*
* @const {CommitEnhanced?} last_commit
*/
const last_commit: CommitEnhanced | undefined = commits.at(-1)
const last_commit: CommitEnhanced | undefined = at(commits, -1)

// set current and previous tags
if (key && (!currentTag || !previousTag)) {
currentTag = key.version ?? undefined

// try setting previous tag based on current tag
if (gitSemverTags.includes(currentTag ?? '')) {
if (includes(gitSemverTags, currentTag)) {
const { version = '' } = key
previousTag = gitSemverTags[gitSemverTags.indexOf(version) + 1]
if (!previousTag) previousTag = last_commit?.hash ?? undefined
Expand All @@ -324,7 +330,7 @@ sade('changelog', true)
: !currentTag && version
? pkg.tagPrefix + version
: currentTag ?? version
previousTag = previousTag ?? gitSemverTags[0]
previousTag = previousTag ?? at(gitSemverTags, 0)
}

// set release date
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@flex-development/mlly": "1.0.0-alpha.15",
"@flex-development/pathe": "1.0.3",
"@flex-development/tsconfig-utils": "1.1.2",
"@flex-development/tutils": "6.0.0-alpha.10",
"@flex-development/tutils": "6.0.0-alpha.12",
"@graphql-eslint/eslint-plugin": "3.18.0",
"@types/chai": "4.3.4",
"@types/conventional-changelog": "3.1.1",
Expand Down Expand Up @@ -144,7 +144,7 @@
},
"resolutions": {
"@ardatan/sync-fetch": "larsgw/sync-fetch#head=worker_threads",
"@flex-development/tutils": "6.0.0-alpha.10"
"@flex-development/tutils": "6.0.0-alpha.12"
},
"engines": {
"node": ">=16.20.0",
Expand Down
4 changes: 2 additions & 2 deletions src/types/__tests__/bugs.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* @module pkg-types/types/tests/Bugs
*/

import type { JsonObject, KeysRequired } from '@flex-development/tutils'
import type { JsonObject, RequiredKeys } from '@flex-development/tutils'
import type TestSubject from '../bugs'

describe('unit:types/Bugs', () => {
it('should allow empty object', () => {
expectTypeOf<KeysRequired<TestSubject>>().toBeNever()
expectTypeOf<RequiredKeys<TestSubject>>().toBeNever()
})

it('should be json object', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/types/__tests__/dependency-meta.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* @module pkg-types/types/tests/DependencyMeta
*/

import type { JsonObject, KeysRequired } from '@flex-development/tutils'
import type { JsonObject, RequiredKeys } from '@flex-development/tutils'
import type TestSubject from '../dependency-meta'

describe('unit:types/DependencyMeta', () => {
it('should allow empty object', () => {
expectTypeOf<KeysRequired<TestSubject>>().toBeNever()
expectTypeOf<RequiredKeys<TestSubject>>().toBeNever()
})

it('should be json object', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/types/__tests__/exports.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('unit:types/Exports', () => {
it('should extract (ExportConditions | string)[]', () => {
expectTypeOf<TestSubject>()
.extract<(ExportConditions | string)[]>()
.toBeArray()
.not.toBeNever()
})

it('should extract ExportConditions', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/types/__tests__/install-config.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* @module pkg-types/types/tests/InstallConfig
*/

import type { JsonObject, KeysRequired } from '@flex-development/tutils'
import type { JsonObject, RequiredKeys } from '@flex-development/tutils'
import type HoisitingLimits from '../hoisiting-limits'
import type TestSubject from '../install-config'

describe('unit:types/InstallConfig', () => {
it('should allow empty object', () => {
expectTypeOf<KeysRequired<TestSubject>>().toBeNever()
expectTypeOf<RequiredKeys<TestSubject>>().toBeNever()
})

it('should be json object', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/types/__tests__/license-object.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* @module pkg-types/types/tests/LicenseObject
*/

import type { JsonObject, KeysRequired } from '@flex-development/tutils'
import type { JsonObject, RequiredKeys } from '@flex-development/tutils'
import type TestSubject from '../license-object'

describe('unit:types/LicenseObject', () => {
it('should allow empty object', () => {
expectTypeOf<KeysRequired<TestSubject>>().toBeNever()
expectTypeOf<RequiredKeys<TestSubject>>().toBeNever()
})

it('should be json object', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/types/__tests__/peer-dependency-meta.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* @module pkg-types/types/tests/PeerDependencyMeta
*/

import type { JsonObject, KeysRequired } from '@flex-development/tutils'
import type { JsonObject, RequiredKeys } from '@flex-development/tutils'
import type TestSubject from '../peer-dependency-meta'

describe('unit:types/PeerDependencyMeta', () => {
it('should allow empty object', () => {
expectTypeOf<KeysRequired<TestSubject>>().toBeNever()
expectTypeOf<RequiredKeys<TestSubject>>().toBeNever()
})

it('should be json object', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/types/__tests__/workspaces-config.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* @module pkg-types/types/tests/WorkspacesConfig
*/

import type { JsonObject, KeysRequired } from '@flex-development/tutils'
import type { JsonObject, RequiredKeys } from '@flex-development/tutils'
import type TestSubject from '../workspaces-config'

describe('unit:types/WorkspacesConfig', () => {
it('should allow empty object', () => {
expectTypeOf<KeysRequired<TestSubject>>().toBeNever()
expectTypeOf<RequiredKeys<TestSubject>>().toBeNever()
})

it('should be json object', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/types/export-conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type Exports from './exports'
/**
* Object containing conditions indicating how to resolve a package entry point.
*
* @see [`ExportCondition`]({@link ./export-condition.ts})
* @see {@linkcode ExportCondition}
*/
type ExportConditions = ExactOptionalPropertyTypes<{
[condition in ExportCondition]?: Exports
Expand Down
21 changes: 15 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ __metadata:
"@flex-development/mlly": "npm:1.0.0-alpha.15"
"@flex-development/pathe": "npm:1.0.3"
"@flex-development/tsconfig-utils": "npm:1.1.2"
"@flex-development/tutils": "npm:6.0.0-alpha.10"
"@flex-development/tutils": "npm:6.0.0-alpha.12"
"@graphql-eslint/eslint-plugin": "npm:3.18.0"
"@types/chai": "npm:4.3.4"
"@types/conventional-changelog": "npm:3.1.1"
Expand Down Expand Up @@ -1341,12 +1341,14 @@ __metadata:
languageName: node
linkType: hard

"@flex-development/tutils@npm:6.0.0-alpha.10":
version: 6.0.0-alpha.10
resolution: "@flex-development/tutils@npm:6.0.0-alpha.10::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Ftutils%2F6.0.0-alpha.10%2Fb2085f42d62aedfabfae2ed016c0cc5c47192f81"
"@flex-development/tutils@npm:6.0.0-alpha.12":
version: 6.0.0-alpha.12
resolution: "@flex-development/tutils@npm:6.0.0-alpha.12::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Ftutils%2F6.0.0-alpha.12%2F09e3edc5c0533b5a51a88aa87c8b13bf48aeceb9"
dependencies:
dequal: "npm:2.0.3"
peerDependencies:
typescript: ">=4.7"
checksum: 372d2fd3e36f75cf7f9ea80e3e95cbd99f673dd114301f610a29e7acf12f589342c1e84c0139c8aa7cac1bcae2c7c1db2cb1302bae55da9d2fb33ae32b5c2a1b
typescript: ">=5.0.4"
checksum: 25f8e93fa7fb15b1068f603f89e18272426de282d20d835ac20b80c3dec76ec7c899bca52228c58a27fe2f87797f720e5857ea6944058081c97e9691d4262ac3
languageName: node
linkType: hard

Expand Down Expand Up @@ -3791,6 +3793,13 @@ __metadata:
languageName: node
linkType: hard

"dequal@npm:2.0.3":
version: 2.0.3
resolution: "dequal@npm:2.0.3"
checksum: 7a633ec0ba78bc08ba217b762b15157d2ec99edb50a82124df2c341255b1943217215872888981cc6a6ee02406ab1b09783f5b51b7db8d8f8f1284092f379aad
languageName: node
linkType: hard

"detect-indent@npm:^6.0.0":
version: 6.1.0
resolution: "detect-indent@npm:6.1.0"
Expand Down

0 comments on commit e7d5dc0

Please sign in to comment.