angular/packages/zone.js/lib
Alex Rickabaugh 4821239c41 refactor: add g3-only and 3p-only markers to replace specific g3 patches
Replace specific file patches applied during google3 sync with generic comment-based mechanisms.

By adding `// g3-only` prefix comments to g3-specific exports and declarations, and appending `// 3p-only` context to `@internal` tags, we enable generic tooling to handle these modifications during the sync process.

Additionally, wrap 3rd-party-only imports and exports (which should be stripped in google3) with `// 3p-only-start` and `// 3p-only-end` comment markers.

This reduces the need for maintaining custom file-specific patches in google3.

Also, add a comprehensive guide to these sync comment markers in `contributing-docs/google-markers.md` to assist external contributors.

Specifically:
- Add `// 3p-only` context to `@internal` in `directives.ts` for `foreignImports` and `deferredImports`.
- Add `// g3-only` commented exports in `core.ts`.
- Add `// g3-only-start`/`// g3-only-end` commented global declaration block in `zone.ts`.
- Wrap 3p-only imports in `fake_navigation.ts` with `// 3p-only-start` and `// 3p-only-end`.
- Wrap 3p-only exports in `compiler-cli/index.ts` with `// 3p-only-start` and `// 3p-only-end`.
- Add `// g3-only` and `// 3p-only` markers to `shared.ts` for `setDisabledStateDefault` configuration.
- Add `// g3-only` and `// 3p-only` markers to `feature_detection.ts` for semver dependency.
- Add `// g3-only` and `// 3p-only` markers to `domino_adapter.ts` for domino import path.
- Add `// 3p-only` marker to `ng_dev_mode` import in `event_dispatcher.ts`.
- Add `// g3-only` and `// 3p-only` markers to `MOUSE_SPECIAL_SUPPORT` in `event_contract_defines.ts`.
- Add `// g3-only` and `// 3p-only` markers to `BrowserModule` imports in `module.ts` (animations) and `browser.ts` (testing).
- Add `// 3p-only` marker to `goog.d.ts` reference tags in `util.ts` (platform-browser), `types.d.ts`, `ng_i18n_closure_mode.ts`, `tokens.ts`, and `global_utils.ts`.
- Wrap `Default` enum value of `ChangeDetectionStrategy` in `constants.ts` with `// 3p-only-start` and `// 3p-only-end`.
- Add `// g3-only` and `// 3p-only` markers to `LEGACY_OPTIONAL_CHAINING_DEFAULT` in `legacy_optional_chaining_default.ts` and `legacyOptionalChaining` in `directive.ts`.
- Add `// g3-only` and `// 3p-only` markers to `DEFAULT_PARAMS_INHERITANCE_STRATEGY` in `router_state.ts`.
- Add `// g3-only` and `// 3p-only` (and block variants) markers to `@mcp-b/webmcp-types` imports in `declare_tool.ts`, `provide_tools.ts`, and `types.ts`.
- Add `contributing-docs/google-markers.md` guide.

TAG=agy
CONV=cd09a4f3-869a-4f41-949b-c91f1b8f1c51
2026-05-22 16:22:35 -07:00
..
browser refactor(zone.js): remove legacy browser support (#63511) 2025-10-16 14:58:45 +00:00
common fix(zone.js): support passthrough of Promise.try API 2026-02-17 11:32:49 -08:00
extra refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
jasmine fix(zone.js): Support jasmine v6 2025-10-24 18:46:04 +02:00
jest refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
mix refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
mocha refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
rxjs refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
testing refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
vitest feat(zone.js): support vitest patching in zone.js/testing (#68395) 2026-04-30 15:44:35 -07:00
zone-spec refactor(zone.js): Improve missing proxy zone error for jest imported (#64497) 2025-10-22 23:26:23 +00:00
BUILD.bazel refactor(zone.js): remove legacy browser support (#63511) 2025-10-16 14:58:45 +00:00
zone-global.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
zone-impl.ts fix(zone.js): allow draining microtasks in Promise.then (through flag) 2026-04-15 10:31:28 -04:00
zone.api.extensions.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
zone.configurations.api.ts fix(zone.js): allow draining microtasks in Promise.then (through flag) 2026-04-15 10:31:28 -04:00
zone.ts refactor: add g3-only and 3p-only markers to replace specific g3 patches 2026-05-22 16:22:35 -07:00