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

Bump the effect group with 3 updates #147

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Changes from 1 commit
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
Next Next commit
Bump the effect group with 3 updates
Bumps the effect group with 3 updates: [@effect/platform](https://github.com/effect-ts/effect/tree/HEAD/packages/platform), [@effect/schema](https://github.com/effect-ts/effect/tree/HEAD/packages/schema) and [effect](https://github.com/effect-ts/effect/tree/HEAD/packages/effect).


Updates `@effect/platform` from 0.48.21 to 0.48.29
- [Release notes](https://github.com/effect-ts/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/platform/CHANGELOG.md)
- [Commits](https://github.com/effect-ts/effect/commits/@effect/platform@0.48.29/packages/platform)

Updates `@effect/schema` from 0.64.15 to 0.65.0
- [Release notes](https://github.com/effect-ts/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/schema/CHANGELOG.md)
- [Commits](https://github.com/effect-ts/effect/commits/@effect/schema@0.65.0/packages/schema)

Updates `effect` from 2.4.15 to 2.4.19
- [Release notes](https://github.com/effect-ts/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/effect/CHANGELOG.md)
- [Commits](https://github.com/effect-ts/effect/commits/effect@2.4.19/packages/effect)

---
updated-dependencies:
- dependency-name: "@effect/platform"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: effect
- dependency-name: "@effect/schema"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: effect
- dependency-name: effect
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: effect
...

Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] authored Apr 16, 2024
commit 50a0f1c12d987db8016aa1ccb2ebe52605424d23
46 changes: 26 additions & 20 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -28,12 +28,12 @@
"vitest": "^1.5.0"
},
"dependencies": {
"@effect/platform": "^0.48.21",
"@effect/schema": "^0.64.5",
"@effect/platform": "^0.48.29",
"@effect/schema": "^0.65.0",
"@js-temporal/polyfill": "^0.4.4",
"chalk": "^5.3.0",
"doi-regex": "^0.1.13",
"effect": "2.4.15",
"effect": "2.4.19",
"ioredis": "^5.3.2",
"orcid-utils": "^1.2.2"
}

Unchanged files with check annotations Beta

export const Doi = Brand.refined<Doi>(isDoi, s => Brand.error(`Expected ${s} to be a DOI`))
export const DoiSchema = Schema.string.pipe(Schema.fromBrand(Doi))

Check failure on line 12 in src/Doi.ts

GitHub Actions / Lint

Unsafe assignment of an `any` value

Check failure on line 12 in src/Doi.ts

GitHub Actions / Lint

Unsafe call of an `any` typed value

Check failure on line 12 in src/Doi.ts

GitHub Actions / Lint

Unsafe member access .pipe on an `any` value

Check failure on line 12 in src/Doi.ts

GitHub Actions / Typecheck

Property 'string' does not exist on type 'typeof import("/home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/dist/dts/Schema")'. Did you mean 'String'?

Check failure on line 12 in src/Doi.ts

GitHub Actions / Test

test/Doi.test.ts

TypeError: Cannot read properties of undefined (reading 'pipe') ❯ src/Doi.ts:12:40 ❯ test/Doi.test.ts:5:31
export const toUrl: (doi: Doi) => URL = doi => {
const url = new URL('https://doi.org')
GetPeerReviewsForOrcidIdError,
OrcidConfig | HttpClient.client.Client.Default | OrcidAccessToken
> =>
Effect.gen(function* (_) {

Check failure on line 35 in src/Orcid.ts

GitHub Actions / Typecheck

Type 'Effect<any, HttpClientError | ParseError, unknown>' is not assignable to type 'Effect<any, GetPeerReviewsForOrcidIdError, OrcidAccessToken | OrcidConfig | Default>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
const client = yield* _(orcidClient)
const response = yield* _(
HttpClient.request.get(`${id}/peer-reviews`),
client,
Effect.flatMap(HttpClient.response.schemaBodyJson(PeerReviewsSchema)),

Check failure on line 41 in src/Orcid.ts

GitHub Actions / Lint

Unsafe argument of type `any` assigned to a parameter of type `Schema<unknown, unknown, unknown>`
Effect.scoped,
)
return response.group

Check failure on line 45 in src/Orcid.ts

GitHub Actions / Lint

Unsafe return of an `any` typed value

Check failure on line 45 in src/Orcid.ts

GitHub Actions / Typecheck

'response' is of type 'unknown'.
})
export const addPeerReviewToOrcidId = ({
AddPeerReviewToOrcidIdError,
OrcidConfig | HttpClient.client.Client.Default | OrcidAccessToken
> =>
Effect.gen(function* (_) {

Check failure on line 59 in src/Orcid.ts

GitHub Actions / Typecheck

Type 'Effect<void, HttpClientError | BodyError, unknown>' is not assignable to type 'Effect<void, AddPeerReviewToOrcidIdError, OrcidAccessToken | OrcidConfig | Default>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
const client = yield* _(orcidClient)
yield* _(
HttpClient.request.post(`${id}/peer-review`, { headers: { 'Content-Type': 'application/vnd.orcid+json' } }),
HttpClient.request.schemaBody(NewPeerReviewSchema)(peerReview),

Check failure on line 64 in src/Orcid.ts

GitHub Actions / Lint

Unsafe argument of type `any` assigned to a parameter of type `Schema<unknown, unknown, unknown>`
Effect.flatMap(client),
Effect.scoped,
)
yield* _(HttpClient.request.del(`${orcid}/peer-review/${id}`), client, Effect.scoped)
})
const PrereviewGroupSchema = Schema.struct({

Check failure on line 83 in src/Orcid.ts

GitHub Actions / Lint

Unsafe assignment of an `any` value

Check failure on line 83 in src/Orcid.ts

GitHub Actions / Lint

Unsafe call of an `any` typed value

Check failure on line 83 in src/Orcid.ts

GitHub Actions / Typecheck

Property 'struct' does not exist on type 'typeof import("/home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/dist/dts/Schema")'. Did you mean 'Struct'?
'external-ids': Schema.struct({

Check failure on line 84 in src/Orcid.ts

GitHub Actions / Lint

Unsafe assignment of an `any` value

Check failure on line 84 in src/Orcid.ts

GitHub Actions / Lint

Unsafe call of an `any` typed value

Check failure on line 84 in src/Orcid.ts

GitHub Actions / Typecheck

Property 'struct' does not exist on type 'typeof import("/home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/dist/dts/Schema")'. Did you mean 'Struct'?
'external-id': Schema.tuple(

Check failure on line 85 in src/Orcid.ts

GitHub Actions / Typecheck

Property 'tuple' does not exist on type 'typeof import("/home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/dist/dts/Schema")'. Did you mean 'Tuple'?
Schema.struct({

Check failure on line 86 in src/Orcid.ts

GitHub Actions / Typecheck

Property 'struct' does not exist on type 'typeof import("/home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/dist/dts/Schema")'. Did you mean 'Struct'?
'external-id-type': Schema.literal('peer-review'),

Check failure on line 87 in src/Orcid.ts

GitHub Actions / Typecheck

Property 'literal' does not exist on type 'typeof import("/home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/dist/dts/Schema")'. Did you mean 'Literal'?
'external-id-value': Schema.literal('orcid-generated:prereview'),

Check failure on line 88 in src/Orcid.ts

GitHub Actions / Typecheck

Property 'literal' does not exist on type 'typeof import("/home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/dist/dts/Schema")'. Did you mean 'Literal'?
}),
),
}),
describe('PlainDateSchema', () => {
describe('decoding', () => {
test.prop([fc.plainDate()])('with a date string', plainDate => {
const actual = Schema.decodeUnknownSync(_.PlainDateSchema)(plainDate.toString())

Check failure on line 33 in test/Temporal.test.ts

GitHub Actions / Test

test/Temporal.test.ts > PlainDateSchema > decoding > with a date string (with seed=2080117152)

Error: Property failed after 1 tests { seed: 2080117152, path: "0:0:0", endOnFailure: true } Counterexample: [0000-01-01] Shrunk 2 time(s) Got TypeError: Cannot read properties of undefined (reading '_tag') at go (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:818:15) at goMemo (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:806:18) at getEither (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:490:18) at getSync (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:496:18) at Module.decodeUnknownSync (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:520:61) at /home/runner/work/orcid-sync/orcid-sync/test/Temporal.test.ts:33:29 at file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:3:41 at AsyncProperty.predicate (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/property/AsyncProperty.js:14:59) at AsyncProperty.run (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:39) at asyncRunIt (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/runner/Runner.js:33:36) Hint: Enable verbose mode in order to have the list of all failing values encountered during the run ❯ go node_modules/@effect/schema/src/ParseResult.ts:818:15 ❯ goMemo node_modules/@effect/schema/src/ParseResult.ts:806:18 ❯ getEither node_modules/@effect/schema/src/ParseResult.ts:490:18 ❯ getSync node_modules/@effect/schema/src/ParseResult.ts:496:18 ❯ Module.decodeUnknownSync node_modules/@effect/schema/src/ParseResult.ts:520:61 ❯ test/Temporal.test.ts:33:29 ❯ node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:3:41 ❯ AsyncProperty.predicate node_modules/fast-check/lib/esm/check/property/AsyncProperty.js:14:59 ❯ AsyncProperty.run node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:39 ❯ asyncRunIt node_modules/fast-check/lib/esm/check/runner/Runner.js:33:36 ❯ buildError node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:126:15 ❯ asyncThrowIfFailed node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:143:11
expect(actual).toStrictEqual(plainDate)
})
test.prop([
fc.anything().filter(value => typeof value !== 'string' || !/^[-+]?[0-9]+-[0-9]{2}-[0-9]{2}$/.test(value)),
])('with a non-date-string', value => {
const actual = Schema.decodeUnknownEither(_.PlainDateSchema)(value)

Check failure on line 41 in test/Temporal.test.ts

GitHub Actions / Test

test/Temporal.test.ts > PlainDateSchema > decoding > with a non-date-string (with seed=-1711955320)

Error: Property failed after 1 tests { seed: -1711955320, path: "0", endOnFailure: true } Counterexample: [undefined] Shrunk 0 time(s) Got TypeError: Cannot read properties of undefined (reading '_tag') at go (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:818:15) at goMemo (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:806:18) at getEither (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:490:18) at Module.decodeUnknownEither (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:539:3) at Module.decodeUnknownEither (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/Schema.ts:437:43) at /home/runner/work/orcid-sync/orcid-sync/test/Temporal.test.ts:41:29 at file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:3:41 at AsyncProperty.predicate (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/property/AsyncProperty.js:14:59) at AsyncProperty.run (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:39) at asyncRunIt (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/runner/Runner.js:33:36) Hint: Enable verbose mode in order to have the list of all failing values encountered during the run ❯ go node_modules/@effect/schema/src/ParseResult.ts:818:15 ❯ goMemo node_modules/@effect/schema/src/ParseResult.ts:806:18 ❯ getEither node_modules/@effect/schema/src/ParseResult.ts:490:18 ❯ Module.decodeUnknownEither node_modules/@effect/schema/src/ParseResult.ts:539:3 ❯ Module.decodeUnknownEither node_modules/@effect/schema/src/Schema.ts:437:43 ❯ test/Temporal.test.ts:41:29 ❯ node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:3:41 ❯ AsyncProperty.predicate node_modules/fast-check/lib/esm/check/property/AsyncProperty.js:14:59 ❯ AsyncProperty.run node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:39 ❯ asyncRunIt node_modules/fast-check/lib/esm/check/runner/Runner.js:33:36 ❯ buildError node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:126:15 ❯ asyncThrowIfFailed node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:143:11
expect(actual).toStrictEqual(Either.left(expect.anything()))
})
})
test.prop([fc.plainDate()])('encoding', plainDate => {
const actual = Schema.encodeSync(_.PlainDateSchema)(plainDate)

Check failure on line 48 in test/Temporal.test.ts

GitHub Actions / Test

test/Temporal.test.ts > PlainDateSchema > encoding (with seed=-2036251134)

Error: Property failed after 1 tests { seed: -2036251134, path: "0:0:0:0", endOnFailure: true } Counterexample: [0000-01-01] Shrunk 3 time(s) Got TypeError: Cannot read properties of undefined (reading '_tag') at go (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:818:15) at goMemo (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:806:18) at getEither (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:490:18) at getSync (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:496:18) at Module.encodeUnknownSync (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@effect/schema/src/ParseResult.ts:570:61) at /home/runner/work/orcid-sync/orcid-sync/test/Temporal.test.ts:48:27 at file:///home/runner/work/orcid-sync/orcid-sync/node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:3:41 at AsyncProperty.predicate (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/property/AsyncProperty.js:14:59) at AsyncProperty.run (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:39) at asyncRunIt (file:///home/runner/work/orcid-sync/orcid-sync/node_modules/fast-check/lib/esm/check/runner/Runner.js:33:36) Hint: Enable verbose mode in order to have the list of all failing values encountered during the run ❯ go node_modules/@effect/schema/src/ParseResult.ts:818:15 ❯ goMemo node_modules/@effect/schema/src/ParseResult.ts:806:18 ❯ getEither node_modules/@effect/schema/src/ParseResult.ts:490:18 ❯ getSync node_modules/@effect/schema/src/ParseResult.ts:496:18 ❯ Module.encodeUnknownSync node_modules/@effect/schema/src/ParseResult.ts:570:61 ❯ test/Temporal.test.ts:48:27 ❯ node_modules/@fast-check/vitest/lib/internals/TestWithPropRunnerBuilder.js:3:41 ❯ AsyncProperty.predicate node_modules/fast-check/lib/esm/check/property/AsyncProperty.js:14:59 ❯ AsyncProperty.run node_modules/fast-check/lib/esm/check/property/AsyncProperty.generic.js:46:39 ❯ asyncRunIt node_modules/fast-check/lib/esm/check/runner/Runner.js:33:36 ❯ buildError node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:126:15 ❯ asyncThrowIfFailed node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js:143:11
expect(actual).toStrictEqual(plainDate.toString())
})