Jayden Seric

Results 226 comments of Jayden Seric

The new `graphql-react` [v13](https://github.com/jaydenseric/graphql-react/releases/tag/v13.0.0) API has composable React hooks for the separate concerns of reading from the cache vs loading it. A custom hook could be used as an alternative...

[v18](https://github.com/jaydenseric/apollo-upload-client/releases/tag/v18.0.0) has been published, which includes the new option `print` for the function `createUploadLink` 🚀

@jimmywarting editor or TypeScript config doesn't get published or used when the package is installed by users. You don't just want type safety for the source code of the package...

How do you configure Zed auto updates to opt into prerelease updates? There are fixes and features in prereleases (e.g. https://github.com/zed-industries/zed/releases/tag/v0.125.0-pre) that I want to use now, instead of waiting...

There is an easy non-breaking-change solution: A new Node.js arg `--optional-env-file=.env`. The arg `--env-file` would continue with it's current behavior, and `--optional-env-file` would load the specified env file only if...

@ljharb not sure how that is any different to putting additional `exports` rules in the top level `package.json`?

Ok, here is one possible way to blacklist that *seems* to work: ```json { "name": "a", "main": "lib", "exports": { ".": "./lib/index.js", "./lib/": "./lib/", "./lib/helpers/": "./this-dir-doesnt-exist/" } } ``` For...

Good ideas, here's the results. 1. `null`: ``` internal/modules/cjs/loader.js:631 throw new ERR_INVALID_PACKAGE_TARGET( ^ Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" target null defined for './lib/helpers/' in the package config /Users/jaydenseric/Desktop/package-exports-test/node_modules/a/package.json at resolveExportsTarget (internal/modules/cjs/loader.js:631:9)...

I think `null` should be a valid value, to allow deliberate blacklisting.

Sure it throws, but the `ERR_INVALID_PACKAGE_TARGET` error is from the perspective that the package `exports` is misconfigured, not that the user has imported something wrongly. Even the fake path solution...