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

Version Packages #2911

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Version Packages #2911

merged 1 commit into from
Jun 5, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 3, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@effect/cli@0.36.41

Patch Changes

effect@3.2.9

Patch Changes

@effect/experimental@0.16.22

Patch Changes

@effect/opentelemetry@0.34.16

Patch Changes

@effect/platform@0.55.6

Patch Changes

  • #2903 799aa20 Thanks @rocwang! - # Make baseUrl() more defensive in @effect/platform

    Sometimes, third party code may patch a missing global location to accommodate for non-browser JavaScript
    runtimes, e.g. Cloudflare Workers,
    Deno. Such patch
    might not yield a fully valid location. This could
    break baseUrl(), which is called by makeUrl().

    For example, the following code would log Invalid URL: '/api/v1/users' with base 'NaN'.

    import { makeUrl } from "@effect/platform/Http/UrlParams";
    
    globalThis.location = { href: "" };
    
    const url = makeUrl("/api/v1/users", []);
    
    // This would log "Invalid URL: '/api/v1/users' with base 'NaN'",
    // because location.origin + location.pathname return NaN in baseUrl()
    console.log(url.left.message);

    Arguably, this is not an issue of Effect per se, but it's better to be defensive and handle such cases gracefully.
    So this change does that by checking if location.orign and location.pathname are available before accessing them.

  • Updated dependencies [8c5d280, 6ba6d26, cd7496b, 3f28bf2, 5817820, 349a036]:

    • effect@3.2.9
    • @effect/schema@0.67.19

@effect/platform-browser@0.35.6

Patch Changes

@effect/platform-bun@0.36.6

Patch Changes

@effect/platform-node@0.51.6

Patch Changes

@effect/platform-node-shared@0.6.6

Patch Changes

@effect/printer@0.33.25

Patch Changes

@effect/printer-ansi@0.33.25

Patch Changes

@effect/rpc@0.30.41

Patch Changes

@effect/rpc-http@0.28.41

Patch Changes

@effect/schema@0.67.19

Patch Changes

  • #2916 cd7496b Thanks @gcanti! - Add support for AST.Literal in Schema.TemplateLiteral, closes From Discord: Schema template literal issue after upgrading to @effect/schema@0.67.18 #2913

  • #2915 349a036 Thanks @gcanti! - Align constructors arguments:

    • Refactor Class interface to accept options for disabling validation
    • Refactor TypeLiteral interface to accept options for disabling validation
    • Refactor refine interface to accept options for disabling validation
    • Refactor BrandSchema interface to accept options for disabling validation

    Example

    import { Schema } from "@effect/schema";
    
    const BrandedNumberSchema = Schema.Number.pipe(
      Schema.between(1, 10),
      Schema.brand("MyNumber"),
    );
    
    BrandedNumberSchema.make(20, { disableValidation: true }); // Bypasses validation and creates the instance without errors
  • Updated dependencies [8c5d280, 6ba6d26, 3f28bf2, 5817820]:

    • effect@3.2.9

@effect/sql@0.3.7

Patch Changes

@effect/sql-mssql@0.3.8

Patch Changes

@effect/sql-mysql2@0.3.8

Patch Changes

@effect/sql-pg@0.3.8

Patch Changes

@effect/sql-sqlite-bun@0.3.8

Patch Changes

@effect/sql-sqlite-node@0.3.8

Patch Changes

@effect/sql-sqlite-react-native@0.4.8

Patch Changes

@effect/sql-sqlite-wasm@0.2.26

Patch Changes

@effect/typeclass@0.24.25

Patch Changes

@effect/vitest@0.5.9

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from f1ca22e to e72a1fe Compare June 4, 2024 21:52
@gcanti gcanti merged commit ae55d07 into main Jun 5, 2024
@gcanti gcanti deleted the changeset-release/main branch June 5, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

From Discord: Schema template literal issue after upgrading to @effect/schema@0.67.18
1 participant