Skip to content

Releases: samchon/typia

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

v6.8.0

15 Aug 19:06
aeb14af
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.7.2...v6.8.0

v6.7.2

04 Aug 23:55
c792f72
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.7.0...v6.7.2

v6.7.0

03 Aug 16:47
59cc5ea
Compare
Choose a tag to compare
compare

Performance enhancement by caching internal functions, suggested by @miyaji255.

As the ObjectHierarchical like structures are commonly seen in the real world services, I strongly recommend to installing this update.

What's Changed

Full Changelog: v6.6.2...v6.7.0

v6.6.2

31 Jul 15:59
57df81d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.6.1...v6.6.2