Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/many-boats-peel.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @lightpanda/browser

## 1.0.1

### Patch Changes

- [`3059859`](https://github.com/lightpanda-io/node-packages/commit/3059859307ced46bb7868626f9644cad2444c093) Thanks [@nrigaudiere](https://github.com/nrigaudiere)! - Init package

## 1.0.0

### Major Changes
Expand Down
15 changes: 15 additions & 0 deletions packages/browser/cli/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#!/usr/bin/env node

/**
* Copyright 2023-2025 Lightpanda (Selecy SAS)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import yargs from 'yargs'
import { hideBin } from 'yargs/helpers'

Expand Down
15 changes: 15 additions & 0 deletions packages/browser/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2023-2025 Lightpanda (Selecy SAS)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { fetch } from './src/fetch'
import { serve } from './src/serve'

Expand Down
4 changes: 2 additions & 2 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightpanda/browser",
"version": "1.0.0",
"version": "1.0.1",
"description": "Lightpanda for Node.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -34,7 +34,7 @@
"bugs": {
"url": "https://github.com/lightpanda-io/node-packages/issues"
},
"homepage": "https://github.com/lightpanda-io/node-packages/tree/main#readme",
"homepage": "https://github.com/lightpanda-io/node-packages/tree/main/packages/browser#readme",
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/node": "22.15.32",
Expand Down
15 changes: 15 additions & 0 deletions packages/browser/scripts/postinstall.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2023-2025 Lightpanda (Selecy SAS)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { download } from './../src/download'

download()
15 changes: 15 additions & 0 deletions packages/browser/src/download.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2023-2025 Lightpanda (Selecy SAS)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { constants, chmodSync, createWriteStream, existsSync, mkdirSync } from 'node:fs'
import https from 'node:https'
import { arch, exit, platform } from 'node:process'
Expand Down
16 changes: 16 additions & 0 deletions packages/browser/src/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/**
* Copyright 2023-2025 Lightpanda (Selecy SAS)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { execSync } from 'node:child_process'
import { getExecutablePath, validateUrl } from './utils'

/**
* @typedef LightpandaFetchOptions
* @type {object}
Expand Down
16 changes: 16 additions & 0 deletions packages/browser/src/serve.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
/**
* Copyright 2023-2025 Lightpanda (Selecy SAS)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type ChildProcessWithoutNullStreams, spawn } from 'node:child_process'
import { getExecutablePath, validatePort, validateUrl } from './utils'

/**
* @typedef LightpandaServeOptions
* @type {object}
Expand Down
15 changes: 15 additions & 0 deletions packages/browser/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2023-2025 Lightpanda (Selecy SAS)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import os from 'node:os'

export const DEFAULT_CACHE_FOLDER = `${os.homedir()}/.cache/lightpanda-node`
Expand Down