Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 2, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
typia (source) 6.12.2 -> 7.0.1 age adoption passing confidence

Release Notes

samchon/typia (typia)

v7.0.1

Compare Source

Emergent patch for frontend applications with unplugin-typia, especially for below cases.

Special thanks to @​ryoppippi

  1. Dynamic import statements must be injected after "use server" like statements
  2. Remove $ starting variable for SvelteKit 5.
What's Changed

Full Changelog: samchon/typia@v7.0.0...v7.0.1

v7.0.0

Compare Source

LLM Models Supporting

LLM schema generator functions have become suitable to LLM provider models.

import { ILlmApplication, ILlmSchema } from "@​samchon/openapi";
import typia from "typia";

const app: ILlmApplication<"chatgpt"> = typia.llm.application<MyApp, "chatgpt">();
const parameters: ILlmSchema.IParameters<"claude"> = typia.llm.parameters<MyParameters, "claude">();
const schema: ILlmSchema<"gemini"> = typia.llm.schema<MyType, "gemini">();
image

Optimized for Frontend Bundlers

Typia v7 compiler has been optimized for frontend bundlers.

From now on, internal functions would be dynamically imported like below.

cc @​ryoppippi: please check unplugin-typia works in the new major update.

import typia, { tags } from "typia";
import { v4 } from "uuid";

const matched: boolean = typia.is<IMember>({
  id: v4(),
  email: "samchon.github@gmai19l.com",
  age: 30,
});

console.log(matched); // true

interface IMember {
  id: string & tags.Format<"uuid">;
  email: string & tags.Format<"email">;
  age: number &
    tags.Type<"uint32"> &
    tags.ExclusiveMinimum<19> &
    tags.Maximum<100>;
}
import * as __typia_transform__isFormatUuid from "typia/lib/internal/_isFormatUuid.js";
import * as __typia_transform__isFormatEmail from "typia/lib/internal/_isFormatEmail.js";
import * as __typia_transform__isTypeUint32 from "typia/lib/internal/_isTypeUint32.js";
import typia from "typia";
import { v4 } from "uuid";
const matched = (() => {
  const _io0 = (input) =>
    "string" === typeof input.id &&
    __typia_transform__isFormatUuid._isFormatUuid(input.id) &&
    "string" === typeof input.email &&
    __typia_transform__isFormatEmail._isFormatEmail(input.email) &&
    "number" === typeof input.age &&
    __typia_transform__isTypeUint32._isTypeUint32(input.age) &&
    19 < input.age &&
    input.age <= 100;
  return (input) => "object" === typeof input && null !== input && _io0(input);
})()({
  id: v4(),
  email: "samchon.github@gmai19l.com",
  age: 30,
});
console.log(matched); // true

What's Changed

Full Changelog: samchon/typia@v6.12.2...v7.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovatebot label Dec 2, 2024
@renovate renovate bot force-pushed the renovate/typia-7.x branch 4 times, most recently from e95b798 to 1959514 Compare December 3, 2024 08:07
@renovate renovate bot force-pushed the renovate/typia-7.x branch from 1959514 to ed15009 Compare December 3, 2024 09:26
@DarkGL DarkGL merged commit 682b710 into master Dec 3, 2024
8 checks passed
@renovate renovate bot deleted the renovate/typia-7.x branch December 3, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants