Skip to content

Latest commit

 

History

History
295 lines (201 loc) · 12 KB

CHANGELOG.md

File metadata and controls

295 lines (201 loc) · 12 KB

@kubernetes-models/argo-cd

2.6.2

Patch Changes

2.6.1

Patch Changes

2.6.0

Minor Changes

  • #199 dba981d Thanks @tommy351! - Pre-compile OpenAPI schema into a validate function. This should improve the performance of first-time validation, but the package size will slightly increase.

Patch Changes

2.5.1

Patch Changes

2.5.0

Minor Changes

2.4.0

Minor Changes

2.3.1

Patch Changes

2.3.0

Minor Changes

Patch Changes

2.2.1

Patch Changes

  • 767314d Thanks @tommy351! - Simplify export map.

    // Before
    {
      "exports": {
        "import": {
          "types": "./dist/index.d.ts",
          "default": "./dist/index.mjs"
        },
        "require": {
          "types": "./dist/index.d.ts",
          "default": "./dist/index.js"
        }
      }
    }
    
    // After
    {
      "exports": {
        "types": "./dist/index.d.ts",
        "import": "./dist/index.mjs",
        "require": "./dist/index.js"
      }
    }
  • Updated dependencies [9816d36, 767314d]:

2.2.0

Minor Changes

  • d46053b Thanks @tommy351! - Decrease the size of export map in package.json by using wildcard pattern (*).

    // Before
    {
      "exports": {
        "./v1/Pod": {
          "import": "./v1/Pod.mjs",
          "require": "./v1/Pod.js"
        },
        "./v1/Service": {
          "import": "./v1/Service.mjs",
          "require": "./v1/Service.js"
        }
      }
    }
    
    // After
    {
      "exports": {
        "./v1/*": {
          "import": "./v1/*.mjs",
          "require": "./v1/*.js"
        }
      }
    }
  • f82b1cc Thanks @tommy351! - Support TypeScript nodenext module resolution by adding types to export map.

    // Before
    {
      "exports": {
        "./v1/Pod": {
          "import": "./v1/Pod.mjs",
          "require": "./v1/Pod.js"
        }
      }
    }
    
    // After
    {
      "exports": {
        "./v1/Pod": {
          "import": {
            "types": "./v1/Pod.d.ts",
            "default": "./v1/Pod.mjs"
          }
          "require": {
            "types": "./v1/Pod.d.ts",
            "default": "./v1/Pod.js"
          }
        }
      }
    }

Patch Changes

2.1.0

Minor Changes

Patch Changes

2.0.2

Patch Changes

2.0.1

Patch Changes

2.0.0

Major Changes

Patch Changes

1.1.0

Minor Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

Minor Changes

  • #68 8b610d0 Thanks @tommy351! - All models with apiVersion and kind properties now come with a new static method is, which returns true when the input value contains the same apiVersion and kind with the model.

    This function implements TypeScript type guard, which is very useful for narrowing down types.

    Please noted that this function only checks apiVersion and kind, other properties may still be invalid.

    Below is an example of the type guard function.

    import { Pod } from "kubernetes-models/v1/Pod";
    
    if (Pod.is(value)) {
      // value is a Pod.
    }

Patch Changes

0.1.2

Patch Changes

0.1.1

Patch Changes

0.1.0

Minor Changes

Patch Changes