Skip to content

Commit a4ff44e

Browse files
committed
re-arrange order
1 parent e0e33cc commit a4ff44e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.cursor/rules/sdk_dependency_upgrades.mdc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ yarn why [package-name]
3636
npx yarn-update-dependency@latest [package-name]
3737
```
3838

39+
Avoid upgrading top-level dependencies (defined in `package.json`), especially if they are used for tests. If you are going to upgrade them, ask the user before proceeding.
40+
41+
**REQUIREMENT**: If a `package.json` file is updated, make sure it has a new line at the end.
42+
3943
#### CRITICAL: OpenTelemetry Dependency Constraint
4044

4145
**STOP UPGRADE IMMEDIATELY** if upgrading any dependency with `opentelemetry` in the name and the new version depends on OpenTelemetry SDK/API v2.x or higher.
@@ -45,10 +49,6 @@ When upgrading OpenTelemetry dependencies:
4549
2. Verify none of its dependencies use `@opentelemetry/*` packages at v2.0.0 or higher
4650
3. If v2+ OpenTelemetry dependencies are detected, **ABORT the upgrade** and notify the user that this upgrade cannot proceed due to OpenTelemetry v2 compatibility constraints
4751

48-
Avoid upgrading top-level dependencies (defined in `package.json`), especially if they are used for tests. If you are going to upgrade them, ask the user before proceeding.
49-
50-
**REQUIREMENT**: If a `package.json` file is updated, make sure it has a new line at the end.
51-
5252
#### CRITICAL: E2E Test Dependencies
5353

5454
**DO NOT UPGRADE** the major version of dependencies in test applications where the test name explicitly mentions a dependency version.

0 commit comments

Comments
 (0)