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 #5976

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Update effect npm packages #5976

merged 1 commit into from
Dec 19, 2024

Conversation

hash-worker[bot]
Copy link
Contributor

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

This PR contains the following updates:

Package Type Update Change
@effect/platform (source) devDependencies patch 0.71.5 -> 0.71.6
@effect/platform-node (source) devDependencies patch 0.67.1 -> 0.67.2
effect (source) dependencies patch 3.11.8 -> 3.11.9

Release Notes

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

v0.71.6

Compare Source

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

v0.67.2

Compare Source

Patch Changes
Effect-TS/effect (effect)

v3.11.9

Compare Source

Patch Changes
  • #​4113 1c08a0b Thanks @​thewilkybarkid! - Schema: Support template literals in Schema.Config.

    Example

    import { Schema } from "effect"
    
    // const config: Config<`a${string}`>
    const config = Schema.Config(
      "A",
      Schema.TemplateLiteral(Schema.Literal("a"), Schema.String)
    )
  • #​4174 1ce703b Thanks @​gcanti! - Schema: Add support for TemplateLiteral parameters in TemplateLiteral, closes #​4166.

    This update also adds support for TemplateLiteral and TemplateLiteralParser parameters in TemplateLiteralParser.

    Before

    import { Schema } from "effect"
    
    const schema = Schema.TemplateLiteralParser(
      "<",
      Schema.TemplateLiteralParser("h", Schema.Literal(1, 2)),
      ">"
    )
    /*
    throws:
    Error: Unsupported template literal span
    schema (TemplateLiteral): `h${"1" | "2"}`
    */

    After

    import { Schema } from "effect"
    
    // Schema<readonly ["<", readonly ["h", 2 | 1], ">"], "<h2>" | "<h1>", never>
    const schema = Schema.TemplateLiteralParser(
      "<",
      Schema.TemplateLiteralParser("h", Schema.Literal(1, 2)),
      ">"
    )
    
    console.log(Schema.decodeUnknownSync(schema)("<h1>"))
    // Output: [ '<', [ 'h', 1 ], '>' ]
  • #​4174 1ce703b Thanks @​gcanti! - Schema: Fix bug in TemplateLiteralParser where unions of numeric literals were not coerced correctly.

    Before

    import { Schema } from "effect"
    
    const schema = Schema.TemplateLiteralParser("a", Schema.Literal(1, 2))
    
    console.log(Schema.decodeUnknownSync(schema)("a1"))
    /*
    throws:
    ParseError: (`a${"1" | "2"}` <-> readonly ["a", 1 | 2])
    └─ Type side transformation failure
       └─ readonly ["a", 1 | 2]
          └─ [1]
             └─ 1 | 2
                ├─ Expected 1, actual "1"
                └─ Expected 2, actual "1"
    */

    After

    import { Schema } from "effect"
    
    const schema = Schema.TemplateLiteralParser("a", Schema.Literal(1, 2))
    
    console.log(Schema.decodeUnknownSync(schema)("a1"))
    // Output: [ 'a', 1 ]
    
    console.log(Schema.decodeUnknownSync(schema)("a2"))
    // Output: [ 'a', 2 ]
    
    console.log(Schema.decodeUnknownSync(schema)("a3"))
    /*
    throws:
    ParseError: (`a${"1" | "2"}` <-> readonly ["a", 1 | 2])
    └─ Encoded side transformation failure
       └─ Expected `a${"1" | "2"}`, actual "a3"
    */

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 19, 2024 18:43
@github-actions github-actions bot added area/deps Relates to third-party dependencies (area) area/apps > hash* Affects HASH (a `hash-*` app) area/apps > hash-api Affects the HASH API (app) area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team area/apps labels Dec 19, 2024
hashdotai
hashdotai previously approved these changes Dec 19, 2024
@hash-worker hash-worker bot added this pull request to the merge queue Dec 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 19, 2024
@hash-worker hash-worker bot added this pull request to the merge queue Dec 19, 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 19, 2024
@hash-worker hash-worker bot added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit 3a5f7bd Dec 19, 2024
163 of 164 checks passed
@hash-worker hash-worker bot deleted the deps/js/effect-npm-packages branch December 19, 2024 20:40
Copy link
Contributor

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/block/v/1 $$15.4 \mathrm{ms} \pm 152 \mathrm{μs}\left({\color{lightgreen}-38.935 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$16.4 \mathrm{ms} \pm 182 \mathrm{μs}\left({\color{lightgreen}-13.316 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$15.4 \mathrm{ms} \pm 140 \mathrm{μs}\left({\color{lightgreen}-11.618 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$15.6 \mathrm{ms} \pm 159 \mathrm{μs}\left({\color{lightgreen}-7.860 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$16.1 \mathrm{ms} \pm 160 \mathrm{μs}\left({\color{lightgreen}-10.278 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$15.3 \mathrm{ms} \pm 146 \mathrm{μs}\left({\color{lightgreen}-16.213 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$16.0 \mathrm{ms} \pm 176 \mathrm{μs}\left({\color{lightgreen}-7.229 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$16.9 \mathrm{ms} \pm 166 \mathrm{μs}\left({\color{lightgreen}-32.379 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$15.9 \mathrm{ms} \pm 163 \mathrm{μs}\left({\color{lightgreen}-10.957 \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 $$66.3 \mathrm{ms} \pm 334 \mathrm{μs}\left({\color{lightgreen}-6.420 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=0 $$38.5 \mathrm{ms} \pm 226 \mathrm{μs}\left({\color{lightgreen}-11.052 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=2, PT=2, ET=2, E=2 $$56.9 \mathrm{ms} \pm 211 \mathrm{μs}\left({\color{lightgreen}-7.485 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=2 $$43.1 \mathrm{ms} \pm 320 \mathrm{μs}\left({\color{lightgreen}-9.209 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=2, E=2 $$48.7 \mathrm{ms} \pm 242 \mathrm{μs}\left({\color{lightgreen}-8.646 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=2, ET=2, E=2 $$53.9 \mathrm{ms} \pm 372 \mathrm{μs}\left({\color{lightgreen}-7.012 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=255, PT=255, ET=255, E=255 $$102 \mathrm{ms} \pm 364 \mathrm{μs}\left({\color{lightgreen}-6.670 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=0 $$39.4 \mathrm{ms} \pm 242 \mathrm{μs}\left({\color{lightgreen}-9.613 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=2, PT=2, ET=2, E=2 $$93.3 \mathrm{ms} \pm 305 \mathrm{μs}\left({\color{lightgreen}-7.999 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=2 $$76.8 \mathrm{ms} \pm 337 \mathrm{μs}\left({\color{lightgreen}-7.835 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=2, E=2 $$85.4 \mathrm{ms} \pm 516 \mathrm{μs}\left({\color{lightgreen}-7.649 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=2, ET=2, E=2 $$89.6 \mathrm{ms} \pm 359 \mathrm{μs}\left({\color{lightgreen}-7.535 \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 $$2.12 \mathrm{ms} \pm 4.53 \mathrm{μs}\left({\color{gray}-2.864 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_one_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$5.36 \mathrm{s} \pm 539 \mathrm{ms}\left({\color{gray}-0.264 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$27.7 \mathrm{ms} \pm 266 \mathrm{μs}\left({\color{gray}0.402 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$21.1 \mathrm{ms} \pm 126 \mathrm{μs}\left({\color{gray}0.646 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$58.8 \mathrm{ms} \pm 254 \mathrm{μs}\left({\color{red}79.5 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$86.5 \mathrm{ms} \pm 344 \mathrm{μs}\left({\color{lightgreen}-52.892 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$1.92 \mathrm{ms} \pm 4.98 \mathrm{μs}\left({\color{gray}-3.313 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$2.13 \mathrm{ms} \pm 5.86 \mathrm{μs}\left({\color{gray}-0.073 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$1.95 \mathrm{ms} \pm 8.25 \mathrm{μs}\left({\color{gray}-2.737 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$2.88 \mathrm{ms} \pm 11.8 \mathrm{μs}\left({\color{gray}-3.266 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$13.5 \mathrm{ms} \pm 83.0 \mathrm{μs}\left({\color{lightgreen}-6.980 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_zero_depth

Function Value Mean Flame graphs
entity_by_id 50 entities $$4.03 \mathrm{ms} \pm 11.8 \mathrm{μs}\left({\color{lightgreen}-6.349 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$1.94 \mathrm{ms} \pm 11.6 \mathrm{μs}\left({\color{gray}-3.072 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$1.94 \mathrm{ms} \pm 11.5 \mathrm{μs}\left({\color{gray}-2.500 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$2.06 \mathrm{ms} \pm 11.4 \mathrm{μs}\left({\color{lightgreen}-5.397 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$3.26 \mathrm{ms} \pm 13.7 \mathrm{μs}\left({\color{gray}-3.894 \mathrm{\%}}\right) $$ Flame Graph

CiaranMn pushed a commit that referenced this pull request Jan 13, 2025
Co-authored-by: hash-worker[bot] <180894564+hash-worker[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/apps > hash* Affects HASH (a `hash-*` app) area/apps > hash-api Affects the HASH API (app) area/apps 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