16.0.0 (2023-04-27)
Bug Fixes
- angular: fix migrations cli type and use @angular-devkit/build-angular to determine ng devkit version (#16157) (e9f97f8)
- angular: fix path and selector handling in directive generator (#16017) (9b60863)
- angular: fix path handling and validate standalone option in pipe generator (#16080) (74633f5)
- angular: host and remote app generation with directory (#16113) (44c5471)
- angular: validate standalone option in the directive generator (#16051) (bf9542a)
- bundling: add missing @babel/core dependency to @nrwl/webpack (#16023) (bfea455)
- core:
anyOf
should validate if at least 1 condition passes (#14769) (c3ba5ab) - core: deleted projects should not be in cached graph (#16210) (1df2d68)
- core: don't error if lock file not present when precomputing js dependencies (#16094) (18c016b)
- core: don't show global version warning when Nx is invoked by itself (#16102) (2887596)
- core: ensurePackage fails on pnpm workspaces (#16002) (b3a3f2a)
- core: fix "migrate-to-inputs" migration (#16145) (aaa1113)
- core: fix broken command-line unit test (#16152) (00ed85d)
- core: fix NX_PERF_LOGGING toggles (#16054) (45a1a6e)
- core: fix parallel cli argument not default to 3 when not specified (#13837) (f14aac6)
- core: only use native hasher if available (#16197) (7625956)
- core: respect analyzePackageJson for processProjectGraph (#16220) (afb37c8)
- core: should not throw 'unable to resolve nx/package.json' (#16072) (8092df3)
- core: split nightly e2e target (#16176) (6889f93)
- core: support yarn berry patches in pruned lock file (#15993) (30f993e)
- core: update links shown after create-nx-workspace (4d01b61)
- devkit: tree.children should support writes to directories that have the same name as their parent (#16074) (63e67bf)
- esbuild: don't set outfile or outdir if already defined (#14636) (3636756)
- js: remove thirdParty default so that package.json will be generated by default (#16015) (c02ec9f)
- linter: support ESM js imports in ast utils (#16049) (89d0b8b)
- misc: allow npmScope to be single @ (#16053) (c0d95a7)
- misc: create-nx-workspace should show some stdout if stderr empty on error (#16020) (778400b)
- misc: fix docs for nx watch --includeDependentProjects (#16026) (775f651)
- misc: shared deps that rely on default configuration are filtered out (#16193) (432e074)
- node: update ts-jest config for jest 29 (#16201) (3f4d010)
- nx-dev: adjust tab cmp spacing (#16027) (059447b)
- react-native: add aliasFields to handle replaced files in browser env (#16106) (7a4adf5)
- repo: add CODEOWNERS to prettier ignore list (#16224) (0024706)
- repo: cache nightly node_modules per run to avoid stale graph (#16216) (98501aa)
- repo: enable mac tests on nightly and fix CI (#16150) (e81bdd4)
- repo: fix codeowners (#16218) (7c5c36d)
- repo: use lerna command in e2e with yarn --silent (#16155) (cb5a7d8)
- storybook: v7 gen docs and install react deps (#16057) (c91c365)
- testing: correctly error with jest.mock for invalid filepaths (#15445) (083f4f1)
- testing: allow removing projects in standalone apps (#16093) (5afb5fc)
- testing: merge reporter/coverage values from vite config (#16165) (9ba8444)
- testing: prevent loop w/ Cypress watch & Vite processor (#16099) (8b4e5f6)
- angular: consider app-routing.module.ts when setting up module federation host routes (#16285) (3e45445)
- core: correctly pass resolved compilerOptions to ts-node (#16240) (98b4aa6)
- core: migrate should read both generators and schematics (#16294) (bd63cbf)
- core: run-many doesn't strip quotes surrounding target names (#16211) (5da650a)
- core: update @monodon/rust (#16334) (f0cbb84)
- js: report createGlobPatternsForDependencies errors on tailwind (#16266) (e6f6fc1)
- nextjs: clean up favicon & remove unnecessary property (#16233) (63d0230)
- nextjs: Let Next.js handler serve public/ folder (#16318) (d54f848)
- storybook: add correct v7 packages when generating storybook configuration (#16272) (5628969)
- testing: support custom workspaceRoot for angular CT (#15485) (26fbd1d)
- testing: use jest v29 deps in @nrwl/jest (#16256) (b15db06)
- core: fix failing unit test (#16357) (0d561ef)
- core: replace @nrwl with @nx in nx core packages (#16344) (4ee1ba5)
- core: use the module name as the name of the nx plugin (#16335) (fa40367)
- federation: dont default to esm (#16011) (81f5603)
- nx-dev: add redirects for new tutorials (#16355) (739e1ab)
- angular: add component import path correctly to NgModule when flat=false (#16364) (0ce1f37)
- angular: fix resolve builder in ngcli adapter (#16375) (52acf07)
- angular: schematics warning should only occur when run as schematic (#16396) (4446bf7)
- angular: throw error when generating component with multiple candidate modules (#16332) (48b356d)
- core: do not attempt to remove non-existent package from package.json (#16399) (1b7587f)
- core: fix preset unit tests (#16384) (c6310e6)
- js: update swc options so path mappings can work in all environments (#16390) (ab609a2)
- react: install rollup package when generating lib (#16373) (a4ef959)
- storybook: check storybook is installed and not on v7 already (#16402) (2e97962)
- storybook: do not override existing v7 on init (#16405) (157b35b)
- storybook: handle @nrwl packages in storybook installed check (#16380) (3d3cc74)
- core: fix devkit compatibility (#16413) (1ff450b)
- core: hide duplicate log entry when displaying generator help (#16353) (b3ca503)
- linter: don't confuse buildable libs for secondary ng entry point (#16367) (c8960b7)
- misc: mark workspace-lint as deprecated in yargs config (#16385) (9fa6d41)
- react-native: remove listDevices default value for run-android (#16410) (9c9abaa)
- storybook: dont use swc addon on sb7 and format (#16408) (c963393)
- testing: nullcheck polyfills in ng component testing (#16411) (1ad7e3d)
- core: do not expect each package to have hoisted version in lockfile (#16393) (a51ac58)
- core: enforce fixed versions only for apps with createPackageJson (#16398) (4a4fc19)
- misc: handle packages rescope in nx init flows (#16404) (752a923)
- misc: pass e2eTestRunner to child preset generator (#16414) (a798576)
- nextjs: make lint generator rootProject aware (#16436) (86b674f)
- nextjs: styled-jsx and styled-components should have "use client directive" (#16440) (5e0893a)
- react-native: log errors for pod install (#16386) (16e115f)
- storybook: only check existence of storybook before migrating (#16431) (e447f2c)
- angular: build plugin runtime code with ts module option set to esnext (#16448) (258cda3)
- core: fix cache recalculation (#16468) (a10b6b1)
- core: fix nx package group to have correct legacy eslint-plugin (#16470) (dbce22a)
- core: hide message when migrating to a new major and already connected to cloud (#16466) (505b5dc)
- core: optional dependencies should be tracked by project graph (#16383) (61451a1)
- core: whitelist registries that support obtaining migration config via 'npm view' (#16423) (a7c14fc)
- devkit: writing a file inside a deleted directory should undelete it (6e9d4ec)
- linter: fix legacy linter migrations (#16462) (88b9687)
- misc: cleanup migration to workspace-plugin (be768ca)
- misc: set default e2e test runner when creating angular and next workspaces (#16464) (a421fce)
- nextjs: add e2e test case for standalone nextjs (#16447) (425124f)
- nextjs: Add exclude to root projects e2e tsconfig so that tests will be picked up. (#16459) (a908ef5)
- nextjs: output path for standalone apps (#16465) (f43ac5b)
- nextjs: remove the need to install @nx/next for production builds (#16469) (564ffae)
- nextjs: support workspace libs with standalone Next.js app (#16471) (bb11fe3)
- nx-plugin: correct importPath and import updates for migration to local plugins (#16437) (b44dbf9)
- nx-plugin: don't add tslib if compiling with swc (#16418) (c337998)
- nx-plugin: generated root plugin should not have wonky paths (#16445) (219ad67)
- react: swapped fragments with
- react: use babel-loader when using styled-jsx with rspack (#16443) (0a6d376)
- bundling: export collections from @nx/vite (#16514) (9aa355f)
- core: do not replace @nrwl mentions in CHANGELOG.md (#16512) (5272e5a)
- core: use located tsconfig name for tsconfig-paths when registering local plugin transpiler (#16476) (0e68441)
- js: throw better error messaging when a dependency is not in the graph (#16510) (db32400)
- linter: replace eslint ignore comments during @nrwl -> @nx migra… (#16521) (aeb5950)
- misc: create-nx-workspace should display short error messages (#16474) (ddf613c)
- misc: create-nx-workspace should work with custom presets on windows (#16473) (04a0c77)
- misc: safely iterate over package.json scripts in nx init command (#16508) (dffb3d3)
- nextjs: do not generate test for appDir page.tsx (#16509) (808b4d1)
- nextjs: Nightly failures since yarn eagerly reads imports (#16522) (4dea8b7)
- nextjs: use require("next") since exports.default is no longer provided (#16497) (786323d)
- repo: fix mismatched package manager e2e utils (#16502) (8519fbc)
- angular: remote static serve target should not watch for changes (#16542) (4e0df09)
- core: do not replace @nrwl mentions in excluded files anywhere i… (#16555) (8329395)
- core: do not replace legacy package mentions in binary files (#16547) (cba3c48)
- core: handle symbol in migration path and infer angular material and cdk migration type correctly (#16538) (85366d5)
- devkit: add .pxd and .pxz to binary extensions (#16556) (c0e5dd9)
- devkit: don't visit files that are ignored by nxignore (#16544) (f0295fa)
- devkit: handle moving a file back to the spot it was already on disk (#16554) (7acc5da)
- js: ensure publishable libraries are not marked as private (#16549) (b374bd3)
- js: fix minimal publish script devkit import (#16559) (555cacd)
- linter: ensure target project locator is using stale graph in IDE (#16534) (d47df3d)
- misc: don't generate workspace-generators directory (#16525) (c688df6)
- nextjs: ignore components in appDir when generating cy files (#16520) (87ac061)
- node: use consistent default port (#16491) (3d5b849)
- nx-plugin: cleanup some paths that are strange when root project (#16548) (b409095)
- nx-plugin: generate example file with .template extension (#16543) (5b0527b)
- nx-plugin: make cli schema json migration safer (#16558) (b3b61f5)
- react-native: fix @nrwl/react-native and @nrwl/expo dep conficts (#16524) (7e64afc)
- repo: fix publish script's use of pnpm part 2 (#16568) (240a27b)
- repo: fix publish scripts use of pnpm (#16566) (d22b037)
- webpack: web app in default nx config not working with @aws-sdk (#15962) (440a85c)
- angular: fix the imports of @angular-devkit/architect/node for n… (#16595) (eb425b6)
- core: deprecate mf utils from devkit public api (#16574) (f34fec3)
- core: fix missing top-level dependencies (#14832) (369ee09)
- core: improve docker detection with cgroup (#16589) (7263b48)
- core: use nx@next when migrating to
next
(#16557) (0add1a1) - misc: add a migration to update or remove references to @nrwl/web/babel (#16581) (38c3221)
- nextjs: Add debug ability when verbose is passed to build (#16545) (d24862d)
- node: Propagate --bundler when passed via CNW (#16580) (d5062e7)
- nx-dev: toc width (#16592) (ae48f04)
- nx-plugin: remove createPackageName prompt for nx plugin (#16585) (e4aad48)
- nx-plugin: runNxCommand should default to using tmpProjPath as the cwd (#16562) (0193967)
- vite: build executor should not overwrite package.json in dist (#16586) (2d78de5)
- core: do not strip additional angular.json properties (#16615) (b1e3545)
- core: handle nested gitignores in the filewatcher (9753acb)
- linter: do not replace legacy package in binary files (#16617) (9ed96a1)
- react: skip DefinePlugin for SSR (#16612) (9d71c71)
- repo: replace remaining instances of yarn with pnpm (#16571) (f004e22)
- repo: run nightly e2e with pnpm (#16602) (0947eb4)
Features
- angular: export some utils as public api #15669 (#16056) (e71d015)
- bundling: add support for esbuild.config.js file (#16092) (807884c)
- core: add support for pnpm v8 (#15925) (443d45d)
- core: add support for tags with
(print-)affected(:*)
andrun-many
(#10085) (454344b) - core: allow dependsOn to accept a single project dependency (#16100) (f2f6e35)
- core: allow local execution transpiler overriding with env var (#16037) (6e86866)
- core: allow referencing other packages to specify implementations for executors + generators (#15987) (39646cf)
- core: deprecate implicitDependency in nx.json (#16084) (f34564c)
- core: error when a project graph plugin fails (#16095) (ad6ec99)
- core: remove @nrwl/cli (#16129) (601a64d)
- misc: bump tsquery dependency version (#16050) (675a5a9)
- nextjs: add support for experimental appDir (#16132) (18e965d)
- node: Added E2E project generation option to NestJs app generator (#14805) (3af649d)
- nx-dev: add markdoc title card component (#16098) (ee1f7c1)
- nx-dev: add table of content for documents (#15910) (d9c55aa)
- nx-dev: display toc for smaller viewport sizes (#16061) (b9c901b)
- nx-plugin: reuse utilities from create-nx-workspace for create-nx-plugin (#15743) (6e7234c)
- repo: add brew cache to preinstall step on nightly (#16048) (db0fd2f)
- repo: add recently closed count to issues tracker (#16018) (6ba60a0)
- repo: report time of runs (#16115) (e58a059)
- storybook: make v7 default (#16159) (f36d65c)
- testing: remove deperecated @nrwl/cypress/plugins/preprocessor (#16170) (99fafa5)
- angular: remove deprecated simpleModuleName option from library generator (#16219) (c8a2f50)
- core: add hasher implementation info in
nx report
(#16261) (cfaf649) - core: remove @nrwl/workspace:lib (#16122) (cafb49a)
- core: remove @nrwl/workspace:run-commands and @nrwl/workspace:r… (#16298) (95f2f80)
- core: remove support for
targetDependencies
(#16101) (5080f2f) - core: remove usage of --legacy-peer-deps (#16271) (afcf7ba)
- core: support both @nrwl/nx-cloud and nx-cloud (1fb9edc)
- core: switch packages to use the @nx scope (#16069) (2d19500)
- linter: update @typescript-eslint/* to 5.58.0 (#16250) (cdc0906)
- misc: add --integrated option to nx init command (#16148) (4b32716)
- nextjs: add composePlugins util when using multiple plugins (#16296) (7322751)
- nextjs: remove "--server=..." app generator option (#16312) (c3c77d5)
- nextjs: update to Next.js 13.3.0 (#16130) (0578116)
- nx-plugin: remove cli property from generators and executors schema.json file (#16259) (de520d0)
- react: deprecate styl from react and next for 17 (#16135) (3eede1c)
- react: remove standaloneConfig since it does nothing (#16313) (8b48ba9)
- repo: update storybook to v7 (#16174) (c4d9a5b)
- core: add presetVersion flag for the create-nx-workspace (#16303) (dc98485)
- misc: make createWorkspace quieter by default (#16202) (6428294)
- misc: update @swc/helpers version to match @swc/core (#16343) (df81c0d)
- nextjs: add migration for Next.js 13.3.0 (#16370) (ced3ab9)
- storybook: added sb7 generator to migrations (#16369) (a7bc1c6)
- angular: replace usages of @nrwl with @nx (#16377) (da158bc)
- core: extract js related code from affected and hasher (#16244) (2dd59c3)
- js: update @swc/core and @swc/helpers packages (#16372) (fda18e0)
- nest: Add strict option (#16371) (ce4a76a)
- node: replace usages of @nrwl with @nx (#16379) (ad805cb)
- nx-plugin: slim down default generated nx-plugin (#16168) (00f424a)
- react: add @nx/web as a dependency since it is needed by cypress/etc. (#16407) (1780aac)
- repo: replace usages of @nrwl/ with @nx/ in tooling packages (#16351) (5a0a4e8)
- web: replace usages of @nrwl with @nx (#16376) (76dfc62)
- core: add migration to update workspace generators to a local plugin (#12700) (1743ff1)
- misc: expose nx init command flags (#16287) (6677a9c)
- react: add rspack experimental support (#16252) (f04f316)
- testing: bump ts-jest to 29.1.0 to support typescript 5.x (#16401) (5d7ad34)
- testing: export cypressE2EConfigurationGenerator (#16394) (a8e85da)
- bundling: remove esbuild 0.16.0 support (#16435) (bef152d)
- core: remove deprecated affected commands (#16349) (fc07794)
- core: update create-nx-plugin to generate cli library (#15994) (8400484)
- devkit: bump support range to be 15 <= x <= 17 (#16421) (16e4061)
- js: update the lib version in base tsconfig to es2020 (#16429) (9f4d02d)
- linter: add internal rules to prevent deep nx imports (#16430) (bc0bbb0)
- linter: rename @nx/eslint-plugin-nx to @nx/eslint-plugin (#16420) (739b4c2)
- nextjs: Add standalone Nextjs option to react selection when running CNW (#16317) (338dc64)
- nx-plugin: rename @nx/nx-plugin to @nx/plugin (#16422) (fb54f67)
- react: remove empty
- angular: add migration to remove karma generator defaults (#16400) (14d9a8b)
- angular: add migration to remove protractor generator defaults (#16409) (ec3c642)
- next: support nextjs cypress component testing (#16292) (06a885a)
- nx-plugin: slim down generated code when creating a new generator (#16444) (35bda81)
- web: remove deprecated executors (#16416) (8de17ab)
- core: add a monkey-patch for require to use @nx packages instea… (#16511) (26ad8eb)
- core: support directory patterns for --projects (#16288) (6c613ce)
- react-native: upgrade react-native to 0.71.7 (#16504) (cc0d912)
- repo: ignore macos timings for nightly duration report (#16454) (4d5cc73)
- repo: update storybook to v7 (#16174) (#16289) (9bb5d0d)
- repo: use @pnpm/exe over pnpm for CI runs (#16495) (ceab87d)
- core: deprecate @nrwl/tao (#16550) (b42d3f7)
- repo: migrate to pnpm (#16284) (2628658)
- web: expose cache, compression options for file-server (#16546) (ae8c47b)
- core: remove git file hasher implementation (#16517) (3703846)
- core: update dependsOn configuration to use dependencies property (#16584) (ac64773)
- core: update nx schema to include more tasksRunnerOptions options (#16591) (010ddee)
- nx-plugin: simplify generated plugin code (#16590) (7b0f96b)
- vite: add
--testFile
argument to @nrwl/vite:test (#16324) (83ada9d) - vite: allow setting of build target (#16588) (4465425)
- core: remove tasks runner v2 (#16616) (24b2dee)
- js: adding simpleName option to library generator (#16025) (fbf8d9c)
- nest: adding simpleName option to library generator (#16024) (2be25eb)
- react: refactor util
getModuleFederationConfig
to avoid to pass function to determinate the remote url (#16488) (6dd1385)