helloadhavan/github_issues huggingface dataset:
Repository: vercel/next.js
Pull request: fix: Use standard PostCSS configuration in create-next-app format for ecosystem compatibility

### What?

Changed the PostCSS plugin format in create-next-app templates from string array syntax to object syntax.
### Why?

The array string format for PostCSS plugins is non-standard, and gives errors when loading using [postcss-load-config](https://github.com/postcss/postcss-load-config):

```
TypeError: Invalid PostCSS Plugin found at: plugins[0]
``` 

This change ensures that Next.js applications using Tailwind CSS can seamlessly integrate with these tools without requiring manual configuration fixes. For example, vitest will crash, which uses `postcss-load-config` under the hood:
https://github.com/storybookjs/storybook/issues/30878

### How?

Modified the PostCSS configuration in both JavaScript and TypeScript empty app templates with Tailwind to use the object-based plugin format, which is the standard format recognized by PostCSS tools in the ecosystem.

Array syntax:
```tsx
const config = {
  plugins: ["@tailwindcss/postcss"],
};

export default config;
```

Object syntax 

```tsx
 const config = {
  plugins: {
    "@tailwindcss/postcss": {},
  },
};
```


Changed files:
filename: packages/create-next-app/templates/app-tw-empty/js/postcss.config.mjs
patch: @@ -1,5 +1,7 @@
 const config = {
-  plugins: ["@tailwindcss/postcss"],
+  plugins: {
+    "@tailwindcss/postcss": {},
+  },
 };
 
 export default config;

filename: packages/create-next-app/templates/app-tw-empty/ts/postcss.config.mjs
patch: @@ -1,5 +1,7 @@
 const config = {
-  plugins: ["@tailwindcss/postcss"],
+  plugins: {
+    "@tailwindcss/postcss": {},
+  },
 };
 
 export default config;
Repository: denoland/deno
Pull request: fix(ext/node): process.uptime works without this

Fixes https://github.com/denoland/deno/issues/23761

Changed files:
filename: ext/node/polyfills/process.ts
patch: @@ -668,14 +668,9 @@ class Process extends EventEmitter {
     execPath = path;
   }
 
-  setStartTime(t: number) {
-    this.#startTime = t;
-  }
-
-  #startTime = 0;
   /** https://nodejs.org/api/process.html#processuptime */
   uptime() {
-    return (Date.now() - this.#startTime) / 1000;
+    return Number((performance.now() / 1000).toFixed(9));
   }
 
   #allowedFlags = buildAllowedFlags();
@@ -887,16 +882,12 @@ internals.__bootstrapNodeProcess = function (
       );
     }
 
-    process.setStartTime(Date.now());
-
     arch = arch_();
     platform = isWindows ? "win32" : Deno.build.os;
     pid = Deno.pid;
 
     initializeDebugEnv(nodeDebug);
 
-    // @ts-ignore Remove setStartTime and #startTime is not modifiable
-    delete process.setStartTime;
     delete internals.__bootstrapNodeProcess;
   } else {
     // Warmup, assuming stdin/stdout/stderr are all terminals

filename: tests/unit_node/process_test.ts
patch: @@ -1083,3 +1083,12 @@ Deno.test({
     process.setSourceMapsEnabled(true); // noop
   },
 });
+
+// Regression test for https://github.com/denoland/deno/issues/23761
+Deno.test({
+  name: "process.uptime without this",
+  fn() {
+    const v = (0, process.uptime)();
+    assert(v >= 0);
+  },
+});
Repository: nodejs/node
Pull request: deps: update corepack to 0.29.3

This is an automated update of corepack to 0.29.3.

Changed files:
filename: deps/corepack/CHANGELOG.md
patch: @@ -1,5 +1,13 @@
 # Changelog
 
+## [0.29.3](https://github.com/nodejs/corepack/compare/v0.29.2...v0.29.3) (2024-07-21)
+
+
+### Bug Fixes
+
+* fallback to `shasum` when `integrity` is not defined ([#542](https://github.com/nodejs/corepack/issues/542)) ([eb63873](https://github.com/nodejs/corepack/commit/eb63873c6c617a2f8ac7106e26ccfe8aa3ae1fb9))
+* make `DEBUG=corepack` more useful ([#538](https://github.com/nodejs/corepack/issues/538)) ([6019d7b](https://github.com/nodejs/corepack/commit/6019d7b56e85bd8b7b58a1a487922c707e70e30e))
+
 ## [0.29.2](https://github.com/nodejs/corepack/compare/v0.29.1...v0.29.2) (2024-07-13)
 
 

filename: deps/corepack/package.json
patch: @@ -1,6 +1,6 @@
 {
   "name": "corepack",
-  "version": "0.29.2",
+  "version": "0.29.3",
   "homepage": "https://github.com/nodejs/corepack#readme",
   "bugs": {
     "url": "https://github.com/nodejs/corepack/issues"
@@ -18,35 +18,28 @@
   "license": "MIT",
   "packageManager": "yarn@4.3.1+sha224.934d21773e22af4b69a7032a2d3b4cb38c1f7c019624777cc9916b23",
   "devDependencies": {
-    "@babel/core": "^7.14.3",
-    "@babel/plugin-transform-modules-commonjs": "^7.14.0",
-    "@babel/preset-typescript": "^7.13.0",
-    "@jest/globals": "^29.0.0",
     "@types/debug": "^4.1.5",
-    "@types/jest": "^29.0.0",
     "@types/node": "^20.4.6",
     "@types/proxy-from-env": "^1",
     "@types/semver": "^7.1.0",
-    "@types/tar": "^6.0.0",
     "@types/which": "^3.0.0",
     "@yarnpkg/eslint-config": "^2.0.0",
     "@yarnpkg/fslib": "^3.0.0-rc.48",
     "@zkochan/cmd-shim": "^6.0.0",
-    "babel-plugin-dynamic-import-node": "^2.3.3",
     "better-sqlite3": "^10.0.0",
-    "clipanion": "^3.0.1",
+    "clipanion": "patch:clipanion@npm%3A3.2.1#~/.yarn/patches/clipanion-npm-3.2.1-fc9187f56c.patch",
     "debug": "^4.1.1",
     "esbuild": "^0.21.0",
     "eslint": "^8.57.0",
-    "jest": "^29.0.0",
     "proxy-from-env": "^1.1.0",
-    "semver": "^7.5.2",
+    "semver": "^7.6.3",
     "supports-color": "^9.0.0",
-    "tar": "^6.2.1",
+    "tar": "^7.4.0",
     "tsx": "^4.16.2",
     "typescript": "^5.3.3",
     "undici": "^6.19.2",
     "v8-compile-cache": "^2.3.0",
+    "vitest": "^2.0.3",
     "which": "^4.0.0"
   },
   "resolutions": {
@@ -62,7 +55,7 @@
     "postpack": "run clean",
     "rimraf": "node -e 'for(let i=2;i<process.argv.length;i++)fs.rmSync(process.argv[i],{recursive:true,force:true});'",
     "typecheck": "tsc --noEmit",
-    "test": "jest"
+    "test": "vitest"
   },
   "files": [
     "dist",
Repository: vercel/next.js
Pull request: Update Turbopack development test manifest

This auto-generated PR updates the development integration test manifest used when testing Turbopack.

Changed files:
filename: test/turbopack-dev-tests-manifest.json
patch: @@ -976,13 +976,15 @@
   },
   "packages/next/src/server/app-render/csrf-protection.test.ts": {
     "passed": [
+      "isCsrfOriginAllowed should correctly handle origins that don't have a TLD (eg for localhost)",
       "isCsrfOriginAllowed should return false when allowedOrigins contains originDomain with non-matching pattern",
       "isCsrfOriginAllowed should return false when allowedOrigins does not contain originDomain",
       "isCsrfOriginAllowed should return false when allowedOrigins is empty",
       "isCsrfOriginAllowed should return false when allowedOrigins is empty string",
       "isCsrfOriginAllowed should return false when allowedOrigins is undefined",
       "isCsrfOriginAllowed should return true when allowedOrigins contains originDomain",
-      "isCsrfOriginAllowed should return true when allowedOrigins contains originDomain with matching pattern"
+      "isCsrfOriginAllowed should return true when allowedOrigins contains originDomain with matching pattern",
+      "isCsrfOriginAllowed wildcards are only supported below the domain level"
     ],
     "failed": [],
     "pending": [],
Repository: vercel/next.js
Pull request: Update bundler production test manifest

This auto-generated PR updates the production integration test manifest used when testing alternative bundlers.

Changed files:
filename: test/rspack-build-tests-manifest.json
patch: @@ -17991,8 +17991,6 @@
   "test/production/app-dir/symbolic-file-links/symbolic-file-links.test.ts": {
     "passed": [
       "symbolic-file-links should work using browser",
-      "symbolic-file-links should work using cheerio",
-      "symbolic-file-links should work with fetch",
       "symbolic-file-links should work with html"
     ],
     "failed": [],
Repository: facebook/react
Pull request: Guard against reused fibers in React Native commands

## Summary

If either `dispatchCommand` or `sendAccessibilityEvent` are called on a handle that has been unmounted, they can throw a TypeError because `stateNode` may be null. This changes the methods to be resilient to those cases.

## Test Plan

Ran `yarn flow fabric` and `yarn flow native` successfully.
Ran `yarn test ReactFabric-test.internal.js` successfully.

Changed files:
filename: packages/react-native-renderer/src/ReactFabric.js
patch: @@ -160,16 +160,14 @@ function dispatchCommand(handle: any, command: string, args: Array<any>) {
           'native component. Use React.forwardRef to get access to the underlying native component',
       );
     }
-
     return;
   }
 
-  if (handle._internalInstanceHandle) {
-    nativeFabricUIManager.dispatchCommand(
-      handle._internalInstanceHandle.stateNode.node,
-      command,
-      args,
-    );
+  if (handle._internalInstanceHandle != null) {
+    const {stateNode} = handle._internalInstanceHandle;
+    if (stateNode != null) {
+      nativeFabricUIManager.dispatchCommand(stateNode.node, command, args);
+    }
   } else {
     UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args);
   }
@@ -186,11 +184,11 @@ function sendAccessibilityEvent(handle: any, eventType: string) {
     return;
   }
 
-  if (handle._internalInstanceHandle) {
-    nativeFabricUIManager.sendAccessibilityEvent(
-      handle._internalInstanceHandle.stateNode.node,
-      eventType,
-    );
+  if (handle._internalInstanceHandle != null) {
+    const {stateNode} = handle._internalInstanceHandle;
+    if (stateNode != null) {
+      nativeFabricUIManager.sendAccessibilityEvent(stateNode.node, eventType);
+    }
   } else {
     legacySendAccessibilityEvent(handle._nativeTag, eventType);
   }

filename: packages/react-native-renderer/src/ReactNativeRenderer.js
patch: @@ -160,12 +160,11 @@ function dispatchCommand(handle: any, command: string, args: Array<any>) {
     return;
   }
 
-  if (handle._internalInstanceHandle) {
-    nativeFabricUIManager.dispatchCommand(
-      handle._internalInstanceHandle.stateNode.node,
-      command,
-      args,
-    );
+  if (handle._internalInstanceHandle != null) {
+    const {stateNode} = handle._internalInstanceHandle;
+    if (stateNode != null) {
+      nativeFabricUIManager.dispatchCommand(stateNode.node, command, args);
+    }
   } else {
     UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args);
   }
@@ -182,11 +181,11 @@ function sendAccessibilityEvent(handle: any, eventType: string) {
     return;
   }
 
-  if (handle._internalInstanceHandle) {
-    nativeFabricUIManager.sendAccessibilityEvent(
-      handle._internalInstanceHandle.stateNode.node,
-      eventType,
-    );
+  if (handle._internalInstanceHandle != null) {
+    const {stateNode} = handle._internalInstanceHandle;
+    if (stateNode != null) {
+      nativeFabricUIManager.sendAccessibilityEvent(stateNode.node, eventType);
+    }
   } else {
     legacySendAccessibilityEvent(handle._nativeTag, eventType);
   }
Repository: ggml-org/llama.cpp
Pull request: ggml-vulkan: remove unused find_program(glslc)

It's unused and already found by FindVulkan.cmake in the parent CMakeLists.
Also having this find_program here directly prevents usage of hit variables like VULKAN_ROOT which are used by FindVulkan (`find_package(Vulkan)`)

Changed files:
filename: ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt
patch: @@ -1,8 +1,4 @@
 find_package (Threads REQUIRED)
-find_program(GLSLC_EXECUTABLE glslc)
-if(NOT GLSLC_EXECUTABLE)
-    message(FATAL_ERROR "glslc not found.")
-endif()
 
 set(TARGET vulkan-shaders-gen)
 add_executable(${TARGET} vulkan-shaders-gen.cpp)
Repository: huggingface/transformers
Pull request: [modular] Sort modular skips

# What does this PR do?

Easier visual inspection of the skipped checks: the model names are now sorted (previously, they were in topological order)

Example:
![Screenshot 2025-02-20 at 15 50 29](https://github.com/user-attachments/assets/fcb36f91-b143-4349-ae55-ef52782a8e4b)


Changed files:
filename: utils/check_modular_conversion.py
patch: @@ -173,5 +173,5 @@ def guaranteed_no_diff(modular_file_path, dependencies, models_in_diff):
     if skipped_models:
         console.print(
             f"[bold green]Skipped {len(skipped_models)} models and their dependencies that are not in the diff: "
-            f"{', '.join(skipped_models)}[/bold green]"
+            f"{', '.join(sorted(skipped_models))}[/bold green]"
         )
Repository: facebook/react
Pull request: Add test for #21837

Taken from https://github.com/facebook/react/pull/21837#issuecomment-876788973

Changed files:
filename: packages/react-native-renderer/src/__tests__/ReactFabric-test.internal.js
patch: @@ -1064,4 +1064,36 @@ describe('ReactFabric', () => {
     expect(TextInputState.focusTextInput).toHaveBeenCalledTimes(1);
     expect(TextInputState.focusTextInput).toHaveBeenCalledWith(viewRef.current);
   });
+
+  it('should no-op if calling sendAccessibilityEvent on unmounted refs', () => {
+    const View = createReactNativeComponentClass('RCTView', () => ({
+      validAttributes: {foo: true},
+      uiViewClassName: 'RCTView',
+    }));
+
+    nativeFabricUIManager.sendAccessibilityEvent.mockReset();
+
+    let viewRef;
+    act(() => {
+      ReactFabric.render(
+        <View
+          ref={ref => {
+            viewRef = ref;
+          }}
+        />,
+        11,
+      );
+    });
+    const dangerouslyRetainedViewRef = viewRef;
+    act(() => {
+      ReactFabric.stopSurface(11);
+    });
+
+    ReactFabric.sendAccessibilityEvent(
+      dangerouslyRetainedViewRef,
+      'eventTypeName',
+    );
+
+    expect(nativeFabricUIManager.sendAccessibilityEvent).not.toBeCalled();
+  });
 });
Repository: denoland/deno
Pull request: perf(ext/node): cache `IncomingMessageForServer.headers`

This PR adds caching to node's `req.headers`

```js
import express from "npm:express";
const app = express();

app.get("/", function (req, res) {
  const ua = req.header("User-Agent");
  const auth = req.header("Authorization");
  const type = req.header("Content-Type");
  const ip = req.header("X-Forwarded-For");
  res.end();
});

app.listen(3000);
```

**this PR**
```
wrk -d 10s --latency http://127.0.0.1:3000
Running 10s test @ http://127.0.0.1:3000
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   155.64us  152.14us   5.74ms   97.39%
    Req/Sec    35.00k     1.97k   39.10k    80.69%
  Latency Distribution
     50%  123.00us
     75%  172.00us
     90%  214.00us
     99%  563.00us
  703420 requests in 10.10s, 50.31MB read
Requests/sec:  69648.45
Transfer/sec:      4.98MB
```

**main**
```
wrk -d 10s --latency http://127.0.0.1:3000
Running 10s test @ http://127.0.0.1:3000
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   217.95us  786.89us  26.26ms   98.23%
    Req/Sec    32.32k     2.54k   37.19k    87.13%
  Latency Distribution
     50%  130.00us
     75%  191.00us
     90%  232.00us
     99%    1.88ms
  649411 requests in 10.10s, 46.45MB read
Requests/sec:  64300.44
Transfer/sec:      4.60MB
```

Changed files:
filename: ext/node/polyfills/http.ts
patch: @@ -1438,6 +1438,7 @@ export class ServerResponse extends NodeWritable {
 // TODO(@AaronO): optimize
 export class IncomingMessageForServer extends NodeReadable {
   #req: Request;
+  #headers: Record<string, string>;
   url: string;
   method: string;
   // Polyfills part of net.Socket object.
@@ -1484,7 +1485,10 @@ export class IncomingMessageForServer extends NodeReadable {
   }
 
   get headers() {
-    return Object.fromEntries(this.#req.headers.entries());
+    if (!this.#headers) {
+      this.#headers = Object.fromEntries(this.#req.headers.entries());
+    }
+    return this.#headers;
   }
 
   get upgrade(): boolean {
Repository: ggml-org/llama.cpp
Pull request: musa: override warp_size of musa device to 32

*Make sure to read the [contributing guidelines](https://github.com/ggml-org/llama.cpp/blob/master/CONTRIBUTING.md) before submitting a PR*

llama.cpp's `musa` build encounters a runtime error after [commit 10f2e81](https://github.com/ggml-org/llama.cpp/commit/10f2e81809bbb69ecfe64fc8b4686285f84b0c07#diff-215515d65e174fb02240522a4bb36f5c8f974d129f7a8d1aa6026a4dbd8dff12).  

This PR resolves the issue by overriding `warp_size` of musa device to `32`.

#### Testing Done
- [x] `test-backend-ops` on MTT S80
- [x] `./build/bin/llama-cli -m ~/models/deepseek-r1_7b_q4_0.gguf -ngl 999` on MTT S80

Changed files:
filename: ggml/src/ggml-cuda/ggml-cuda.cu
patch: @@ -262,6 +262,8 @@ static ggml_cuda_device_info ggml_cuda_init() {
                       id, prop.name, prop.gcnArchName, info.devices[id].cc & 0xffff,
                       device_vmm ? "yes" : "no", prop.warpSize);
 #elif defined(GGML_USE_MUSA)
+        // FIXME: Ensure compatibility with varying warp sizes across different MUSA archs.
+        info.devices[id].warp_size = 32;
         // TODO: refine the .cc to reflect MUSA's actual CC capabilities
         info.devices[id].smpbo = prop.sharedMemPerBlockOptin;
         info.devices[id].cc = 100*prop.major + 10*prop.minor;
Repository: vercel/next.js
Pull request: Update pnpm swc-build-native's file path

This was broken in https://github.com/vercel/next.js/pull/77536

Test Plan: Successful `pnpm swc-build-native`


Closes PACK-4222

Changed files:
filename: package.json
patch: @@ -68,7 +68,7 @@
     "update-google-fonts": "node ./scripts/update-google-fonts.js",
     "patch-next": "node scripts/patch-next.cjs",
     "unpack-next": "tsx scripts/unpack-next.cjs",
-    "swc-build-native": "tsx scripts/build-native.cjs",
+    "swc-build-native": "tsx scripts/build-native.ts",
     "swc-build-wasm": "tsx scripts/build-wasm.cjs",
     "build-turbopack-cli": "cargo build -p turbopack-cli --release",
     "sweep": "tsx scripts/sweep.cjs",
Repository: ggml-org/llama.cpp
Pull request: llama : support converting Mistral Small (text-only)

> [!IMPORTANT]
>
> At the time of writing this, HF model is missing chat template, let's wait until [this PR](https://huggingface.co/mistralai/Mistral-Small-3.1-24B-Instruct-2503/discussions/13) is merged!

This PR allows converting **text** model from Mistral Small to GGUF

For vision, I don't know yet how it work. Will work it that later.

And congrats to @mistralai team for the release


Changed files:
filename: convert_hf_to_gguf.py
patch: @@ -1747,6 +1747,25 @@ def prepare_tensors(self):
                 raise ValueError(f"Unprocessed experts: {experts}")
 
 
+@Model.register("Mistral3ForConditionalGeneration")
+class Mistral3Model(LlamaModel):
+    model_arch = gguf.MODEL_ARCH.LLAMA
+
+    # we need to merge the text_config into the root level of hparams
+    def __init__(self, *args, **kwargs):
+        hparams = Model.load_hparams(kwargs["dir_model"])
+        if "text_config" in hparams:
+            hparams = {**hparams, **hparams["text_config"]}
+            kwargs["hparams"] = hparams
+        super().__init__(*args, **kwargs)
+
+    def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None):
+        name = name.replace("language_model.", "")
+        if "multi_modal_projector" in name or "vision_tower" in name:
+            return []
+        return super().modify_tensors(data_torch, name, bid)
+
+
 @Model.register("DeciLMForCausalLM")
 class DeciModel(Model):
     model_arch = gguf.MODEL_ARCH.DECI
Repository: electron/electron
Pull request: build: strip linux release binaries

#### Description of Change

This PR makes the Linux binaries in release branches not 2GB - this was partially backported but not applied to the publish.yml file

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] PR description included and stakeholders cc'd
- [ ] `npm test` passes
- [ ] tests are [changed or added](https://github.com/electron/electron/blob/main/docs/development/testing.md)
- [ ] relevant documentation, tutorials, templates and examples are changed or added
- [ ] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: none


Changed files:
filename: .github/actions/build-electron/action.yml
patch: @@ -17,6 +17,9 @@ inputs:
   is-release:
     description: 'Is release build'
     required: true
+  strip-binaries:
+    description: 'Strip binaries (Linux only)'
+    required: false
   generate-symbols:
     description: 'Generate symbols'
     required: true

filename: .github/workflows/linux-publish.yml
patch: @@ -49,6 +49,7 @@ jobs:
       is-release: true
       gn-build-type: release
       generate-symbols: true
+      strip-binaries: true
       upload-to-storage: ${{ inputs.upload-to-storage }}
     secrets: inherit
 
@@ -64,6 +65,7 @@ jobs:
       is-release: true
       gn-build-type: release
       generate-symbols: true
+      strip-binaries: true
       upload-to-storage: ${{ inputs.upload-to-storage }}
     secrets: inherit
 
@@ -79,5 +81,6 @@ jobs:
       is-release: true
       gn-build-type: release
       generate-symbols: true
+      strip-binaries: true
       upload-to-storage: ${{ inputs.upload-to-storage }}
     secrets: inherit
\ No newline at end of file

filename: .github/workflows/pipeline-segment-electron-build.yml
patch: @@ -44,6 +44,11 @@ on:
         required: true
         type: string
         default: '0'
+      strip-binaries: 
+        description: 'Strip the binaries before release (Linux only)'
+        required: false
+        type: boolean
+        default: false
       is-asan: 
         description: 'Building the Address Sanitizer (ASan) Linux build'
         required: false
@@ -186,6 +191,7 @@ jobs:
         artifact-platform: ${{ inputs.target-platform == 'linux' && 'linux' || 'darwin' }}
         is-release: '${{ inputs.is-release }}'
         generate-symbols: '${{ inputs.generate-symbols }}'
+        strip-binaries: '${{ inputs.strip-binaries }}'
         upload-to-storage: '${{ inputs.upload-to-storage }}'
         is-asan: '${{ inputs.is-asan }}'
     - name: Set GN_EXTRA_ARGS for MAS Build
Repository: denoland/deno
Pull request: fix(core): fix fetch `size_hint`

When `max` is known and is greater than `grow_len` initial value is being set to `min` / `grow_len` instead of `max`. This is causing unnecessary resizes. 

Changed files:
filename: ext/fetch/lib.rs
patch: @@ -534,7 +534,7 @@ impl Resource for FetchResponseBodyResource {
   }
 
   fn size_hint(&self) -> (u64, Option<u64>) {
-    (0, self.size)
+    (self.size.unwrap_or(0), self.size)
   }
 
   fn close(self: Rc<Self>) {