Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nrwl/nx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 22.6.2
Choose a base ref
...
head repository: nrwl/nx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 22.6.3
Choose a head ref
  • 6 commits
  • 12 files changed
  • 3 contributors

Commits on Mar 27, 2026

  1. chore(repo): use SHAs for GH actions (#35035)

    Pin actions versions to SHAs in workflows for improved security.
    
    (cherry picked from commit a007fce)
    s-wojciechowski authored and FrozenPandaz committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    451561c View commit details
    Browse the repository at this point in the history
  2. chore(repo): ensure Cypress CT unit tests use Vite 7 since 8 is unsup…

    …ported (#35038)
    
    Currently, updating to 22.7.0-beta.5 causes Angular and React unit tests
    to fail when we are pulling in Vite 8 instead of 7.
    
    Cypress component tests do not support Vite 8 yet, so let's ensure that
    the unit tests set up v7 for now.
    
    cypress-io/cypress#33078
    (cherry picked from commit a4e8ce9)
    jaysoo authored and FrozenPandaz committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    ed5cd20 View commit details
    Browse the repository at this point in the history
  3. feat(misc): a/b test cloud prompt copy in create-nx-workspace (#35039)

    ## Current Behavior
    
    The cloud prompt in CNW is disabled (shouldShowCloudPrompt returns
    false). Users see no cloud prompt during workspace creation.
    
    ## Expected Behavior
    
    Re-enables the cloud prompt with 3 copy variants tied to the flow
    variant (NX_CNW_FLOW_VARIANT), using the existing A/B testing
    infrastructure:
    - Variant 0 (baseline): "Connect to Nx Cloud?"
    - Variant 1 (remote caching): "Enable remote caching to speed up builds
    and CI?"
    - Variant 2 (CI-first): "Speed up your CI with Nx Cloud?"
    
    Each variant has a unique tracking code for measuring yes/skip/never
    rates. New variants emphasize concrete benefits (remote caching, CI
    speed), mention CI providers (GitHub, GitLab), and note free tier and
    2-minute setup.
    
    Also removes unused shouldShowCloudPrompt() function.
    
    ## Screenshots
    
    Variant 0 (current prompts):
    
    <img width="1392" height="935" alt="cnw-variant-0"
    src="https://github.com/user-attachments/assets/38187e44-5c8f-41b1-b2d9-bdb0eead3f7d"
    />
    
    Variant 1 (remote cache to speed up builds, free for small teams):
    
    <img width="1392" height="939" alt="image"
    src="https://github.com/user-attachments/assets/ba7ab127-c91e-4566-bae6-6f7fe797959e"
    />
    
    Variant 2 (speed up CI, mention CI provides):
    
    <img width="1392" height="935" alt="cnw-variant-2"
    src="https://github.com/user-attachments/assets/05bc027a-dcc9-47c4-944c-35ca2fce2007"
    />
    
    ## Related Issue(s)
    
    Closes NXC-4113
    
    (cherry picked from commit cc6b5a3)
    jaysoo authored and FrozenPandaz committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    651ab34 View commit details
    Browse the repository at this point in the history
  4. fix(js): add {projectRoot} prefix to d.ts fileset in typescript plugin (

    #35037)
    
    ## Current Behavior
    
    The TypeScript plugin emits a bare `**/*.d.ts` fileset input (without a
    `{projectRoot}/` prefix) for dependency file tracking. The Nx hasher
    expects all filesets to start with either `{projectRoot}/` or
    `{workspaceRoot}/`, so it logs a warning for every project:
    
    ```
    NX **/*.d.ts does not start with {workspaceRoot}/. This will throw an error in Nx 20.
    ```
    
    ## Expected Behavior
    
    No warning is emitted. The fileset correctly uses
    `{projectRoot}/**/*.d.ts` so the hasher knows it's scoped to the
    dependency project's root.
    
    ## Related Issue(s)
    
    N/A — discovered while debugging e2e test failures.
    
    (cherry picked from commit 6c92d92)
    FrozenPandaz committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    9a743d3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7c9f873 View commit details
    Browse the repository at this point in the history
  6. fix(misc): handle non-interactive mode and add template shorthand nam…

    …es for CNW (#35045)
    
    This PR address some common errors seen during CNW around `--template`
    and `--preset` during non-interactive flows that are not AI agents. Also
    sees that some template names are not qualified with
    `nrwl/<name>-template` so we can normal though (which also makes it
    shorter in docs).
    
    ## Current Behavior
    
    In non-interactive contexts (IDE terminals, scripts, SSH without `-t`),
    `determineTemplate()` returns `'custom'` which routes to the preset
    flow. Without `--preset` provided, this throws "Preset is required",
    which affects ~15 users/day (~145 occurrences Mar 18-27).
    
    Users must also pass full template paths like
    `--template=nrwl/angular-template`.
    
    ## Expected Behavior
    
    Non-interactive mode defaults to `nrwl/empty-template` (template flow)
    instead of `'custom'` (preset flow) when neither `--preset` nor
    `--template` is provided.
    
    Shorthand template names are supported:
    - `--template=angular` → `nrwl/angular-template`
    - `--template=react` → `nrwl/react-template`
    - `--template=typescript` → `nrwl/typescript-template`
    - `--template=empty` → `nrwl/empty-template`
    
    ## Related Issue(s)
    
    Fixes NXC-4153
    jaysoo authored and FrozenPandaz committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    017751b View commit details
    Browse the repository at this point in the history
Loading