commit
9d04f3a5f0
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "owlbear-rodeo",
|
"name": "owlbear-rodeo",
|
||||||
"version": "1.3.1",
|
"version": "1.3.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@msgpack/msgpack": "^1.12.1",
|
"@msgpack/msgpack": "^1.12.1",
|
||||||
|
@ -55,7 +55,9 @@ export function MapDataProvider({ children }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function loadMaps() {
|
async function loadMaps() {
|
||||||
let storedMaps = await database.table("maps").toArray();
|
let storedMaps = [];
|
||||||
|
// Use a cursor instead of toArray to prevent IPC max size error
|
||||||
|
await database.table("maps").each((map) => storedMaps.push(map));
|
||||||
const sortedMaps = storedMaps.sort((a, b) => b.created - a.created);
|
const sortedMaps = storedMaps.sort((a, b) => b.created - a.created);
|
||||||
const defaultMapsWithIds = await getDefaultMaps();
|
const defaultMapsWithIds = await getDefaultMaps();
|
||||||
const allMaps = [...sortedMaps, ...defaultMapsWithIds];
|
const allMaps = [...sortedMaps, ...defaultMapsWithIds];
|
||||||
|
@ -30,7 +30,9 @@ export function TokenDataProvider({ children }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function loadTokens() {
|
async function loadTokens() {
|
||||||
let storedTokens = await database.table("tokens").toArray();
|
let storedTokens = [];
|
||||||
|
// Use a cursor instead of toArray to prevent IPC max size error
|
||||||
|
await database.table("tokens").each((token) => storedTokens.push(token));
|
||||||
const sortedTokens = storedTokens.sort((a, b) => b.created - a.created);
|
const sortedTokens = storedTokens.sort((a, b) => b.created - a.created);
|
||||||
const defaultTokensWithIds = getDefaultTokes();
|
const defaultTokensWithIds = getDefaultTokes();
|
||||||
const allTokens = [...sortedTokens, ...defaultTokensWithIds];
|
const allTokens = [...sortedTokens, ...defaultTokensWithIds];
|
||||||
|
7
src/docs/releaseNotes/v1.3.2.md
Normal file
7
src/docs/releaseNotes/v1.3.2.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# v1.3.2
|
||||||
|
|
||||||
|
## Minor Changes
|
||||||
|
|
||||||
|
- Fixed a bug when loading a large amount of stored maps.
|
||||||
|
|
||||||
|
[Reddit]()
|
@ -51,7 +51,7 @@ function Home() {
|
|||||||
Join Game
|
Join Game
|
||||||
</Button>
|
</Button>
|
||||||
<Text variant="caption" as="p" sx={{ textAlign: "center" }}>
|
<Text variant="caption" as="p" sx={{ textAlign: "center" }}>
|
||||||
Beta v1.3.1
|
Beta v1.3.2
|
||||||
</Text>
|
</Text>
|
||||||
<Button
|
<Button
|
||||||
m={2}
|
m={2}
|
||||||
|
@ -10,6 +10,7 @@ const v120 = raw("../docs/releaseNotes/v1.2.0.md");
|
|||||||
const v121 = raw("../docs/releaseNotes/v1.2.1.md");
|
const v121 = raw("../docs/releaseNotes/v1.2.1.md");
|
||||||
const v130 = raw("../docs/releaseNotes/v1.3.0.md");
|
const v130 = raw("../docs/releaseNotes/v1.3.0.md");
|
||||||
const v131 = raw("../docs/releaseNotes/v1.3.1.md");
|
const v131 = raw("../docs/releaseNotes/v1.3.1.md");
|
||||||
|
const v132 = raw("../docs/releaseNotes/v1.3.2.md");
|
||||||
|
|
||||||
function ReleaseNotes() {
|
function ReleaseNotes() {
|
||||||
return (
|
return (
|
||||||
@ -32,6 +33,9 @@ function ReleaseNotes() {
|
|||||||
<Text mb={2} variant="heading" as="h1" sx={{ fontSize: 5 }}>
|
<Text mb={2} variant="heading" as="h1" sx={{ fontSize: 5 }}>
|
||||||
Release Notes
|
Release Notes
|
||||||
</Text>
|
</Text>
|
||||||
|
<div id="v132">
|
||||||
|
<Markdown source={v132} />
|
||||||
|
</div>
|
||||||
<div id="v131">
|
<div id="v131">
|
||||||
<Markdown source={v131} />
|
<Markdown source={v131} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user