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

Update effect npm packages #5774

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Update effect npm packages #5774

merged 1 commit into from
Dec 3, 2024

Conversation

hash-worker[bot]
Copy link
Contributor

@hash-worker hash-worker bot commented Dec 2, 2024

This PR contains the following updates:

Package Type Update Change
@effect/platform (source) devDependencies minor 0.69.31 -> 0.70.2
@effect/platform-node (source) devDependencies minor 0.64.33 -> 0.65.2
effect (source) dependencies minor 3.10.19 -> 3.11.2

Release Notes

Effect-TS/effect (@​effect/platform)

v0.70.2

Compare Source

Patch Changes

v0.70.1

Compare Source

Patch Changes

v0.70.0

Compare Source

Minor Changes
Patch Changes
Effect-TS/effect (@​effect/platform-node)

v0.65.2

Compare Source

Patch Changes

v0.65.1

Compare Source

Patch Changes

v0.65.0

Compare Source

Minor Changes
Patch Changes
Effect-TS/effect (effect)

v3.11.2

Compare Source

Patch Changes
  • #​4063 01cee56 Thanks @​tim-smart! - Micro adjustments

    • rename Fiber to MicroFiber
    • add Micro.fiberJoin api
    • adjust output when inspecting Micro data types

v3.11.1

Compare Source

Patch Changes

v3.11.0

Compare Source

Minor Changes
  • #​3835 147434b Thanks @​IMax153! - Ensure scopes are preserved by stream / sink / channel operations

    NOTE: This change does modify the public signature of several Stream / Sink / Channel methods. Namely, certain run methods that previously removed a Scope from the environment will no longer do so. This was a bug with the previous implementation of how scopes were propagated, and is why this change is being made in a minor release.

  • #​3835 6e69493 Thanks @​tim-smart! - add Context.Reference - a Tag with a default value

  • #​3835 147434b Thanks @​IMax153! - Add Effect.scopedWith to run an effect that depends on a Scope, and then closes the Scope after the effect has completed

    import { Effect, Scope } from "effect"
    
    const program: Effect.Effect<void> = Effect.scopedWith((scope) =>
      Effect.acquireRelease(Effect.log("Acquiring..."), () =>
        Effect.log("Releasing...")
      ).pipe(Scope.extend(scope))
    )
    
    Effect.runPromise(program)
    // Output:
    // timestamp=2024-11-26T16:44:54.158Z level=INFO fiber=#&#8203;0 message=Acquiring...
    // timestamp=2024-11-26T16:44:54.165Z level=INFO fiber=#&#8203;0 message=Releasing...
  • #​3835 d9fe79b Thanks @​tim-smart! - remove Env, EnvRef & FiberFlags from Micro

  • #​3835 251d189 Thanks @​KhraksMamtsov! - Config.url constructor has been added, which parses a string using new URL()

  • #​3835 5a259f3 Thanks @​tim-smart! - use fiber based runtime for Micro module

    • Improved performance
    • Improved interruption model
    • Consistency with the Effect data type
  • #​3835 b4ce4ea Thanks @​SandroMaglione! - New methods extractAll and extractSchema to UrlParams (added Schema.BooleanFromString).

  • #​3835 15fcc5a Thanks @​fubhy! - Integrated DateTime with Cron to add timezone support for cron expressions.

  • #​3835 9bc9a47 Thanks @​KhraksMamtsov! - URL and URLFromSelf schemas have been added

  • #​3835 aadb8a4 Thanks @​fubhy! - Added BigDecimal.toExponential for scientific notation formatting of BigDecimal values.

    The implementation of BigDecimal.format now uses scientific notation for values with
    at least 16 decimal places or trailing zeroes. Previously, extremely large or small values
    could cause OutOfMemory errors when formatting.

  • #​3835 1e2747c Thanks @​KhraksMamtsov! - - JSONSchema module

    • add format?: string optional field to JsonSchema7String interface
    • Schema module
      • add custom json schema annotation to UUID schema including format: "uuid"
    • OpenApiJsonSchema module
      • add format?: string optional field to String and Numeric interfaces
  • #​3835 e0b9b09 Thanks @​mikearnaldi! - Implement Effect.fn to define traced functions.

    import { Effect } from "effect"
    
    const logExample = Effect.fn("example")(function* <N extends number>(n: N) {
      yield* Effect.annotateCurrentSpan("n", n)
      yield* Effect.logInfo(`got: ${n}`)
      yield* Effect.fail(new Error())
    }, Effect.delay("1 second"))
    
    Effect.runFork(logExample(100).pipe(Effect.catchAllCause(Effect.logError)))
  • #​3835 c36f3b9 Thanks @​KhraksMamtsov! - Config.redacted has been made more flexible and can now wrap any other config. This allows to transform or validate config values before it’s hidden.

    import { Config } from "effect"
    
    Effect.gen(function* () {
      // can be any string including empty
      const pass1 = yield* Config.redacted("PASSWORD")
      //    ^? Redacted<string>
    
      // can't be empty string
      const pass2 = yield* Config.redacted(Config.nonEmptyString("PASSWORD"))
      //    ^? Redacted<string>
    
      const pass2 = yield* Config.redacted(Config.number("SECRET_NUMBER"))
      //    ^? Redacted<number>
    })
  • #​3835 aadb8a4 Thanks @​fubhy! - Added BigDecimal.unsafeFromNumber and BigDecimal.safeFromNumber.

    Deprecated BigDecimal.fromNumber in favour of BigDecimal.unsafeFromNumber.

    The current implementation of BigDecimal.fromNumber and BigDecimal.unsafeFromNumber now throws
    a RangeError for numbers that are not finite such as NaN, +Infinity or -Infinity.

Patch Changes

Configuration

📅 Schedule: Branch creation - "before 4am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@hash-worker hash-worker bot enabled auto-merge December 2, 2024 22:11
@github-actions github-actions bot added area/deps Relates to third-party dependencies (area) area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team labels Dec 2, 2024
hashdotai
hashdotai previously approved these changes Dec 2, 2024
@hash-worker hash-worker bot added this pull request to the merge queue Dec 2, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Dec 2, 2024
@hash-worker hash-worker bot enabled auto-merge December 2, 2024 23:11
@hash-worker hash-worker bot force-pushed the deps/js/effect-npm-packages branch from 9e5c0ae to d3f2f80 Compare December 2, 2024 23:11
hashdotai
hashdotai previously approved these changes Dec 2, 2024
@hash-worker hash-worker bot added this pull request to the merge queue Dec 2, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 3, 2024
@hash-worker hash-worker bot added this pull request to the merge queue Dec 3, 2024
@hash-worker hash-worker bot force-pushed the deps/js/effect-npm-packages branch from d3f2f80 to b245c27 Compare December 3, 2024 00:28
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to invalid changes in the merge commit Dec 3, 2024
@hash-worker hash-worker bot added this pull request to the merge queue Dec 3, 2024
Copy link
Contributor

github-actions bot commented Dec 3, 2024

Benchmark results

@rust/hash-graph-benches – Integrations

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$16.1 \mathrm{ms} \pm 198 \mathrm{μs}\left({\color{lightgreen}-29.243 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$16.2 \mathrm{ms} \pm 176 \mathrm{μs}\left({\color{gray}-2.672 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$16.1 \mathrm{ms} \pm 168 \mathrm{μs}\left({\color{gray}3.79 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$16.9 \mathrm{ms} \pm 181 \mathrm{μs}\left({\color{red}5.13 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$15.5 \mathrm{ms} \pm 168 \mathrm{μs}\left({\color{gray}-4.145 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$15.7 \mathrm{ms} \pm 173 \mathrm{μs}\left({\color{gray}-4.445 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$15.8 \mathrm{ms} \pm 162 \mathrm{μs}\left({\color{gray}-3.212 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$16.1 \mathrm{ms} \pm 196 \mathrm{μs}\left({\color{lightgreen}-9.985 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$15.7 \mathrm{ms} \pm 203 \mathrm{μs}\left({\color{gray}-3.019 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property depths: DT=255, PT=255, ET=255, E=255 $$65.6 \mathrm{ms} \pm 418 \mathrm{μs}\left({\color{gray}0.450 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=0 $$38.3 \mathrm{ms} \pm 301 \mathrm{μs}\left({\color{gray}3.39 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=2, PT=2, ET=2, E=2 $$56.2 \mathrm{ms} \pm 344 \mathrm{μs}\left({\color{gray}1.20 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=2 $$42.6 \mathrm{ms} \pm 310 \mathrm{μs}\left({\color{gray}2.70 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=2, E=2 $$48.6 \mathrm{ms} \pm 409 \mathrm{μs}\left({\color{gray}3.20 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=2, ET=2, E=2 $$52.5 \mathrm{ms} \pm 334 \mathrm{μs}\left({\color{gray}1.72 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=255, PT=255, ET=255, E=255 $$108 \mathrm{ms} \pm 574 \mathrm{μs}\left({\color{gray}1.71 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=0 $$42.5 \mathrm{ms} \pm 304 \mathrm{μs}\left({\color{gray}3.87 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=2, PT=2, ET=2, E=2 $$98.7 \mathrm{ms} \pm 511 \mathrm{μs}\left({\color{gray}1.89 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=2 $$81.5 \mathrm{ms} \pm 425 \mathrm{μs}\left({\color{gray}1.27 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=2, E=2 $$90.6 \mathrm{ms} \pm 390 \mathrm{μs}\left({\color{gray}1.61 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=2, ET=2, E=2 $$95.5 \mathrm{ms} \pm 491 \mathrm{μs}\left({\color{gray}2.10 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: d4e16033-c281-4cde-aa35-9085bf2e7579 $$1.39 \mathrm{ms} \pm 4.42 \mathrm{μs}\left({\color{gray}0.409 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_one_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$4.95 \mathrm{s} \pm 935 \mathrm{ms}\left({\color{red}1726 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$26.5 \mathrm{ms} \pm 210 \mathrm{μs}\left({\color{gray}0.096 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$20.0 \mathrm{ms} \pm 124 \mathrm{μs}\left({\color{gray}-0.607 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$36.7 \mathrm{ms} \pm 252 \mathrm{μs}\left({\color{gray}-1.573 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$180 \mathrm{ms} \pm 938 \mathrm{μs}\left({\color{gray}3.37 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$1.98 \mathrm{ms} \pm 21.0 \mathrm{μs}\left({\color{gray}2.98 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$2.14 \mathrm{ms} \pm 14.0 \mathrm{μs}\left({\color{gray}1.82 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$1.96 \mathrm{ms} \pm 11.5 \mathrm{μs}\left({\color{gray}0.417 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$2.84 \mathrm{ms} \pm 13.9 \mathrm{μs}\left({\color{gray}-4.109 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$13.5 \mathrm{ms} \pm 51.9 \mathrm{μs}\left({\color{gray}0.208 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_zero_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$5.07 \mathrm{ms} \pm 36.7 \mathrm{μs}\left({\color{red}24.8 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$1.97 \mathrm{ms} \pm 11.0 \mathrm{μs}\left({\color{gray}1.24 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$1.93 \mathrm{ms} \pm 9.34 \mathrm{μs}\left({\color{gray}0.332 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$2.09 \mathrm{ms} \pm 16.2 \mathrm{μs}\left({\color{gray}0.333 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$3.40 \mathrm{ms} \pm 40.5 \mathrm{μs}\left({\color{gray}3.50 \mathrm{\%}}\right) $$ Flame Graph

Merged via the queue into main with commit b2e9748 Dec 3, 2024
166 of 167 checks passed
@hash-worker hash-worker bot deleted the deps/js/effect-npm-packages branch December 3, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deps Relates to third-party dependencies (area) area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team
Development

Successfully merging this pull request may close these issues.

1 participant