Skip to content

Commit a5dbaa2

Browse files
authored
fix: increase stream-load-timeout to 6 seconds
@Asko-Dev reports that the `SteamLoadTimeoutError` seems to be thrown "randomly" on iOS 17.5.1 ( see #298 ). That suggests that there is a race condition with the timeout. Let's try to double the timeout (3s -> 6s) and see if that helps. Side changes: * The ESLint setup is broken somehow and since linting is a pre-commit hook it blocks the committing process. Thus, removing the setup entirely for now. To be fixed later if deemed necessary. * migrate legacy Nix setup to Nix flakes / direnv
1 parent b5d08d9 commit a5dbaa2

File tree

11 files changed

+5061
-4321
lines changed

11 files changed

+5061
-4321
lines changed

Diff for: .envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,5 @@ $RECYCLE.BIN/
228228
*.lnk
229229

230230
# End of https://www.toptal.com/developers/gitignore/api/node,linux,macos,windows,vue
231+
232+
.direnv

Diff for: .husky/pre-commit

-5
This file was deleted.

Diff for: CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Don't hesitate to open an issue if you have trouble.
44
### Setup Dev Environment
55

66
Canonically this package uses Node 18 and `pnpm` as a package manager.
7-
If you are a [Nix](https://nixos.org/) user, there is a `shell.nix` file in the project root.
7+
If you are a [Nix](https://nixos.org/) user, there is a `flake.nix` file in the project root.
88

99
Clone the repository and run
1010

Diff for: flake.lock

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: flake.nix

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
description = "";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = nixpkgs.legacyPackages.${system};
13+
in
14+
{
15+
devShells.default = pkgs.mkShell {
16+
buildInputs = with pkgs; [
17+
nodejs_18
18+
nodePackages.pnpm
19+
nodePackages.typescript-language-server
20+
vue-language-server
21+
];
22+
};
23+
}
24+
);
25+
}

Diff for: package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
"docs:dev": "vitepress dev docs",
1717
"docs:build": "vitepress build docs",
1818
"docs:preview": "vitepress preview docs",
19-
"lint": "eslint **/*.{vue,js,ts} --fix --ignore-path .gitignore",
2019
"format": "prettier **/*.{vue,ts,json,md} --write --ignore-path .gitignore --ignore-path docs/.gitignore",
2120
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
22-
"prepack": "pnpm run build",
23-
"prepare": "husky install"
21+
"prepack": "pnpm run build"
2422
},
2523
"main": "./dist/vue-qrcode-reader.js",
2624
"module": "./dist/vue-qrcode-reader.js",
@@ -53,11 +51,9 @@
5351
"eslint": "8.56.0",
5452
"eslint-plugin-prettier": "5.1.0",
5553
"eslint-plugin-vue": "9.19.2",
56-
"husky": "8.0.3",
57-
"lint-staged": "15.2.0",
5854
"prettier": "3.1.1",
5955
"semantic-release": "22.0.12",
60-
"typescript": "5.3.3",
56+
"typescript": "5.5.3",
6157
"vite": "5.0.10",
6258
"vite-plugin-dts": "3.6.4",
6359
"vitepress": "1.0.0-rc.32",

0 commit comments

Comments
 (0)