helloadhavan/github_issues huggingface dataset:
Repository: denoland/deno
Pull request: feat(unstable): deploy config allow app to be optional


Changed files:
filename: cli/main.rs
patch: @@ -39,6 +39,7 @@ use std::path::PathBuf;
 use std::sync::Arc;
 
 use args::TaskFlags;
+use deno_core::anyhow;
 use deno_core::anyhow::Context;
 use deno_core::error::AnyError;
 use deno_core::futures::FutureExt;
@@ -1046,7 +1047,11 @@ async fn initialize_tunnel(
       .to_deploy_config()?
       .expect("auth to be called");
 
-    (deploy_config.org, deploy_config.app)
+    let Some(app) = deploy_config.app else {
+      anyhow::bail!("The 'app' key is missing from the 'deploy' configuration");
+    };
+
+    (deploy_config.org, app)
   };
 
   let Some(addr) = tokio::net::lookup_host(&host).await?.next() else {

filename: libs/config/deno_json/mod.rs
patch: @@ -1071,7 +1071,7 @@ impl NodeModulesDirMode {
 #[serde(deny_unknown_fields)]
 pub struct DeployConfig {
   pub org: String,
-  pub app: String,
+  pub app: Option<String>,
 }
 
 #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
Repository: facebook/react
Pull request: Remove startTransition and useActionState from react-server condition of react

<!--
  Thanks for submitting a pull request!
  We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.

  Before submitting a pull request, please make sure the following is done:

  1. Fork [the repository](https://github.com/facebook/react) and create your branch from `main`.
  2. Run `yarn` in the repository root.
  3. If you've fixed a bug or added code that should be tested, add tests!
  4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
  5. Run `yarn test --prod` to test in the production environment. It supports the same options as `yarn test`.
  6. If you need a debugger, run `yarn test --debug --watch TestName`, open `chrome://inspect`, and press "Inspect".
  7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
  8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
  9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
  10. If you haven't already, complete the CLA.

  Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->

## Summary

Remove `startTransition` and `useActionState` from `react-server` condition of react, as they should only stay in client bundle.
This will reduce the server bundle of react itself. 

Found this while tracing where the `process.emit` was called.

<!--
 Explain the **motivation** for making this change. What existing problem does the pull request solve?
-->

## How did you test this change?

<!--
  Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface.
  How exactly did you verify that your PR solves the issue you wanted to solve?
  If you leave this empty, your PR will very likely be closed.
-->


Changed files:
filename: packages/react/src/ReactServer.js
patch: @@ -22,19 +22,11 @@ import {
   isValidElement,
 } from './jsx/ReactJSXElement';
 import {createRef} from './ReactCreateRef';
-import {
-  use,
-  useId,
-  useCallback,
-  useDebugValue,
-  useMemo,
-  useActionState,
-} from './ReactHooks';
+import {use, useId, useCallback, useDebugValue, useMemo} from './ReactHooks';
 import {forwardRef} from './ReactForwardRef';
 import {lazy} from './ReactLazy';
 import {memo} from './ReactMemo';
 import {cache} from './ReactCacheServer';
-import {startTransition} from './ReactStartTransition';
 import version from 'shared/ReactVersion';
 
 const Children = {
@@ -60,11 +52,9 @@ export {
   lazy,
   memo,
   cache,
-  startTransition,
   useId,
   useCallback,
   useDebugValue,
   useMemo,
-  useActionState,
   version,
 };