Skip to content

Releases: samchon/typia

v6.12.0

11 Nov 12:29
9cdb790
Compare
Choose a tag to compare

What's Changed

  • Recursive type supporting from the LLM schema. by @samchon in #1354

Full Changelog: v6.11.4...v6.12.0

v6.11.4

10 Nov 15:57
b12380e
Compare
Choose a tag to compare

What's Changed

  • build(deps): update @samchon/openapi requirement from ^1.1.1 to ^1.1.2 in the ecosystem group by @dependabot in #1341
  • build(deps-dev): update typedoc requirement from ^0.26.10 to ^0.26.11 in /website in the ecosystem group by @dependabot in #1347
  • Fix wrong $ref address for recursive array type. by @samchon in #1351

Full Changelog: v6.11.3...v6.11.4

v6.11.3

22 Oct 01:56
af07a16
Compare
Choose a tag to compare

What's Changed

  • build(deps-dev): update typedoc requirement from ^0.26.8 to ^0.26.9 in /website in the ecosystem group by @dependabot in #1330
  • build(deps-dev): update typedoc requirement from ^0.26.9 to ^0.26.10 in /website in the ecosystem group by @dependabot in #1331
  • Fix JSON schema bug when template string type with tags. by @samchon in #1337

Full Changelog: v6.11.2...v6.11.3

v6.11.2

11 Oct 10:52
f1ad1a5
Compare
Choose a tag to compare

What's Changed

  • build(deps-dev): update typedoc requirement from ^0.26.7 to ^0.26.8 in /website in the ecosystem group by @dependabot in #1314
  • Fix #1321: private key in the protobuf functions by @samchon in #1323
  • Fix #1036: emoji case in the protobuf by @samchon in #1324
  • feat: disable additionalProperties for llm schema by @antoniomdk in #1312
  • build(deps): update @samchon/openapi requirement from ^1.1.0 to ^1.1.1 in the ecosystem group by @dependabot in #1317
  • build(deps-dev): update typescript requirement from ^5.6.2 to ^5.6.3 in /test in the ecosystem group by @dependabot in #1316
  • build(deps): update typescript requirement from ^5.6.2 to ^5.6.3 in /website in the ecosystem group by @dependabot in #1318
  • Emend #1312: change test schemas by @samchon in #1325

New Contributors

Full Changelog: v6.11.1...v6.11.2

v6.11.1

28 Sep 19:06
3c757d8
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.11.0...v6.11.1

v6.11.0

26 Sep 03:33
Compare
Choose a tag to compare

Enhanced typia.llm.application<App>() function following the @samchon/openapi update of v1.1

What's Changed

  • Add tags.Example type with @samchon/openapi upgrading. by @samchon in #1297
  • Support ILlmFunction.tags by @tag name comment. by @samchon in #1298

Full Changelog: v6.10.2...v6.11.0

v6.10.2

20 Sep 08:15
3b07c4d
Compare
Choose a tag to compare

What's Changed

  • Fix #1289: typia.random<T>() function for uint and exlusiveMinimum. by @samchon in #1290

Full Changelog: v6.10.1...v6.10.2

v6.10.1

19 Sep 05:59
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.10.0...v6.10.1

v6.10.0

09 Sep 17:31
ebf637c
Compare
Choose a tag to compare

From now on, typia setup wizard can detect package manager.

Also, new function typia.llm.application<App>() has come (requested by @ryoppippi).

It composes LLM function calling application from a native TypeScript interface or class type.

export namespace llm {
  // LLM function calling application schema
  export function application<App extends object>(
    options?: ILlmApplication.IOptions
  ): ILlmApplication;

  // Individual type schema
  export function schema<T>(): ILlmSchema;
}

What's Changed

Full Changelog: v6.9.0...v6.10.0

v6.9.0

20 Aug 21:21
0771e23
Compare
Choose a tag to compare

tags.Pattern type has been changed like below.

By such changement, tags.Pattern type no more misses escaped characters.

Before

export type Pattern<Value extends string> = TagBase<{
  target: "string";
  kind: "pattern";
  value: Value;
  validate: `/${Value}/.test($input)`;
  exclusive: ["format", "pattern"];
  schema: {
    pattern: Value;
  };
}>;

After

export type Pattern<Value extends string> = TagBase<{
  target: "string";
  kind: "pattern";
  value: Value;
  validate: `RegExp("${Serialize<Value>}").test($input)`;
  exclusive: ["format", "pattern"];
  schema: {
    pattern: Value;
  };
}>;

/// reference: https://github.com/type-challenges/type-challenges/issues/22394#issuecomment-1397158205
type Serialize<T extends string, Output extends string = ""> = string extends T
  ? never
  : T extends ""
    ? Output
    : T extends `${infer P}${infer R}`
      ? Serialize<R, `${Output}${P extends keyof Escaper ? Escaper[P] : P}`>
      : never;

type Escaper = {
  '"': '\\"';
  "\\": "\\\\";
  "\b": "\\b";
  "\f": "\\f";
  "\n": "\\n";
  "\r": "\\r";
  "\t": "\\t";
};

What's Changed

Full Changelog: v6.8.0...v6.9.0