Skip to content

Commit 5ea241b

Browse files
New version
1 parent a112aa0 commit 5ea241b

File tree

9 files changed

+33
-22
lines changed

9 files changed

+33
-22
lines changed

.changeset/fresh-mirrors-promise.md

-5
This file was deleted.

lib/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @code-hike/lighter
22

3+
## 0.1.5
4+
5+
### Patch Changes
6+
7+
- a112aa0: Improve promise cache
8+
39
## 0.1.4
410

511
### Patch Changes

lib/dist/index.cjs.js

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

lib/dist/index.esm.mjs

+4-6
Original file line numberDiff line numberDiff line change
@@ -2249,22 +2249,22 @@ async function fetchJSON(endpoint) {
22492249
if (typeof fetch === "function") {
22502250
console.log(
22512251
`using fetch`,
2252-
`https://lighter.codehike.org/api/${endpoint}&v=${"0.1.4"}`
2252+
`https://lighter.codehike.org/api/${endpoint}&v=${"0.1.5"}`
22532253
);
22542254
const r = await fetch(
2255-
`https://lighter.codehike.org/api/${endpoint}&v=${"0.1.4"}`
2255+
`https://lighter.codehike.org/api/${endpoint}&v=${"0.1.5"}`
22562256
);
22572257
return await r.json();
22582258
}
22592259
console.log(
22602260
`using https`,
2261-
`https://lighter.codehike.org/api/${endpoint}&v=${"0.1.4"}`
2261+
`https://lighter.codehike.org/api/${endpoint}&v=${"0.1.5"}`
22622262
);
22632263

22642264
const https = await import('https');
22652265
const options = {
22662266
host: "lighter.codehike.org",
2267-
path: `/api/${endpoint}&v=${"0.1.4"}`,
2267+
path: `/api/${endpoint}&v=${"0.1.5"}`,
22682268
method: "GET",
22692269
};
22702270

@@ -2371,9 +2371,7 @@ async function loadGrammars(alias) {
23712371
const lang = languages.find((l) => l.id === langId);
23722372
const promise = lighter.registry.loadGrammar(lang.scopeName);
23732373

2374-
console.log("waiting");
23752374
await promise;
2376-
console.log("ready");
23772375
}
23782376

23792377
function toTokens(code, lang, theme) {

lib/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code-hike/lighter",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"license": "MIT",
55
"main": "./dist/index.cjs.js",
66
"module": "./dist/index.esm.mjs",

test/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# lighter-test
22

3+
## 0.1.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [a112aa0]
8+
- @code-hike/lighter@0.1.5
9+
310
## 0.1.4
411

512
### Patch Changes

test/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "lighter-test",
33
"private": true,
44
"type": "module",
5-
"version": "0.1.4",
5+
"version": "0.1.5",
66
"dependencies": {
7-
"@code-hike/lighter": "0.1.4"
7+
"@code-hike/lighter": "0.1.5"
88
}
99
}

web/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# lighter-web
22

3+
## 0.1.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [a112aa0]
8+
- @code-hike/lighter@0.1.5
9+
310
## 0.1.4
411

512
### Patch Changes

web/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"private": "true",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"name": "lighter-web",
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start"
99
},
1010
"dependencies": {
11-
"@code-hike/lighter": "0.1.4",
11+
"@code-hike/lighter": "0.1.5",
1212
"next": "^13.0.7",
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0"

0 commit comments

Comments
 (0)