Skip to content

chore(deps-dev): bump @typespec/compiler from 1.15.0 to 1.16.0 - #547

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/typespec/compiler-1.16.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/typespec/compiler-1.16.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 20, 2026

Copy link
Copy Markdown
Contributor

Bumps @typespec/compiler from 1.15.0 to 1.16.0.

Release notes

Sourced from @​typespec/compiler's releases.

typespec-stable@1.16.0

@​typespec/compiler

Features

  • #11777 Add sanitizePathSegment helper to make a value coming from a TypeSpec spec safe to use as a single path segment. Path separators, drive letter separators and values only made of . are replaced with _.

    sanitizePathSegment("2021-10-01-preview"); // "2021-10-01-preview"
    sanitizePathSegment("../../etc/passwd"); // ".._.._etc_passwd"
  • #11851 Add support for defining a linter ruleset in a standalone yaml file and referencing it with the file: prefix in linter.extends. This lets a repository share and version a set of linter rules without depending on a library release.

    # tspconfig.yaml
    linter:
      extends:
        - "file:../common-rules.yaml"
    # common-rules.yaml
    extends:
      - "@typespec/best-practices/recommended"
    enable:
      "@typespec/best-practices/new-rule": true
    disable:
      "@typespec/best-practices/foo": "This rule is too strict for this repository"
  • #11489 Add a new experimental $provideTypeInfo library provider and program.getTypeInfo(type) API allowing libraries to contribute extra, domain-specific information about types. Unlike the $onValidate lifecycle hook, a provider never runs during compilation and must not mutate the type graph — it is invoked lazily and on demand (e.g. by the language server for hover documentation, or by tooling querying the type).

    Providers are gated by the type-info-provider compiler feature, scoped to the package that declares it: a library opts in via its own tspconfig.yaml and consumers do not need to enable anything.

    // A library exports a provider (use `defineTypeInfoProvider` for typing):
    export const $provideTypeInfo = defineTypeInfoProvider(({ program, target }) => {
      if (target.kind !== "Operation") return undefined;
      return { content: "extra info about this operation" };
    });
    // Tooling / language server queries it (merges every library's contribution):
    const info = program.getTypeInfo(type);

  • #11771 Add experimental support for an extends clause on union statements to constrain every variant to a common data type.

    Enable the union-extends compiler feature in tspconfig.yaml to use the clause.

    model PetBase {

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@typespec/compiler](https://github.com/microsoft/typespec) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/microsoft/typespec/releases)
- [Commits](https://github.com/microsoft/typespec/compare/typespec-stable@1.15.0...typespec-stable@1.16.0)

---
updated-dependencies:
- dependency-name: "@typespec/compiler"
  dependency-version: 1.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants