Maciej Brencz

Results 72 issues of Maciej Brencz

Prepare for `analyze-css` to be a pure ESM package - https://github.com/macbre/analyze-css/issues/616 ---- https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c - nice notes from @sindresorhus.

esm-migration

- [ ] https://github.com/facebook/jest/pull/12826 - [ ] retry failing tests

internals

Use `test.concurrent`. https://jestjs.io/docs/api#testconcurrentname-fn-timeout

internals
Tests

* [ ] prepare `*.d.ts` files - https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-d-ts.html * [ ] use [`check-dts` for testing `*.d.ts` files](https://github.com/ai/check-dts) See https://github.com/macbre/analyze-css/pull/363

architecture
TypeScript

## `response` event > https://github.com/macbre/phantomas/blob/phantomas-v2/docs/events.md#response-1 ``` "connectionReused": false, "connectionId": 11, "remoteIPAddress": "0.0.0.0", "remotePort": 8888, ```

new metric

* https://web.dev/vitals/ * **Largest Contentful Paint (LCP)**: measures loading performance. To provide a good user experience, LCP should occur within 2.5 seconds of when the page first starts loading. *...

new metric

### HTTP 401 ``` $ ./bin/phantomas.js 'https://httpbin.org/basic-auth/foo/bar' Error: Protocol error (Performance.getMetrics): Target closed. ``` ### HTTP 404 ``` ./bin/phantomas.js http://127.0.0.1:8888/not_found 2>&1 Error: Navigation failed because browser has disconnected! ```

internals

https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#class-coverage Coverage gathers information about parts of JavaScript and CSS that were used by the page. An example of using JavaScript and CSS coverage to get percentage of initially executed...

new metric
Chrome-headless