-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Added - npm package `browser-agent/collection` the place for the userAgent collection - Changelog ### Removed - userAgent collection from npm package `browser-agent` (breaking change if you used the userAgent collection)
- Loading branch information
1 parent
de0d9c7
commit 2a9a8c2
Showing
20 changed files
with
245 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,3 +149,6 @@ dist | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Ignore collection generated code | ||
collection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,10 @@ out | |
*.sln | ||
*.sw? | ||
|
||
# | ||
collection | ||
*.test.ts | ||
*.userAgents.ts | ||
tsconfig.*.json | ||
vitest.*.ts | ||
.eslint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# Browser Agent Changelog | ||
|
||
## Release [v3.0.0](https://github.com/TessavWalstijn/browser-agent/releases/tag/v2.0.2) - 2024-02-09 | ||
|
||
### Added | ||
|
||
- npm package `browser-agent/collection` | ||
the place for the userAgent collection | ||
- Changelog | ||
|
||
### Removed | ||
|
||
- userAgent collection from npm package `browser-agent` | ||
(breaking change if you used the userAgent collection) | ||
|
||
## Release [v2.0.2](https://github.com/TessavWalstijn/browser-agent/releases/tag/v2.0.2) - 2024-02-06 | ||
|
||
### Added | ||
|
||
- Package.json types path for TypeScript | ||
|
||
### Fixed | ||
|
||
- Package.json require and import paths | ||
|
||
## Release [v2.0.1](https://github.com/TessavWalstijn/browser-agent/releases/tag/v2.0.1) - 2024-02-06 | ||
|
||
### Added | ||
|
||
- Contribution Guidelines | ||
- Code of Conduct | ||
|
||
### Fixed | ||
|
||
- Testing step in publish pipeline | ||
- Actual build files in package | ||
|
||
## Release [v2.0.0](https://github.com/TessavWalstijn/browser-agent/releases/tag/v2.0.0) - 2024-02-03 | ||
|
||
### Added | ||
|
||
- Builds for npm | ||
- CJS version | ||
- ESM version | ||
- Tests | ||
- Build test on CJS | ||
- Build test on ESM | ||
- Chrome test | ||
- Edge test | ||
- Firefox test | ||
- Internet Explorer test | ||
- Safari test | ||
- userAgents (3234 of them!) | ||
|
||
### Changed | ||
|
||
- v1.0.1 moved to `./classic` folder | ||
- Original functions rewritten to TypeScript | ||
- Browsers | ||
- Chrome | ||
- Edge | ||
- Firefox | ||
- Internet Explorer | ||
- Safari | ||
- Operating Systems | ||
- Windows | ||
- Mac OS | ||
- Ubuntu | ||
- Fedora | ||
- Red Hat | ||
- Linux Mint | ||
- CentOS | ||
- Debian | ||
- Linux | ||
- Android | ||
- iOS | ||
- iPadOS | ||
- Unix | ||
|
||
## Release [v1.0.1](https://github.com/TessavWalstijn/browser-agent/releases/tag/v1.0.1) - 2022-12-26 | ||
|
||
### Fixed | ||
|
||
- Typo in Firefox.js | ||
|
||
## Release [v1.0.0](https://github.com/TessavWalstijn/browser-agent/releases/tag/v1.0.0) - 2022-12-26 | ||
|
||
### Added | ||
|
||
- **Browsers:** | ||
- Chrome | ||
- Edge | ||
- Firefox | ||
- IE | ||
- Safari | ||
- **Operating Systems:** | ||
- Windows | ||
- Mac OS | ||
- Ubuntu | ||
- Fedora | ||
- Red Hat | ||
- Linux Mint | ||
- CentOS | ||
- Debian | ||
- Linux | ||
- Android | ||
- iOS | ||
- Unix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Collection package for `browser-agent` | ||
|
||
### Indexed browsers | ||
|
||
- Chrome | ||
- Edge | ||
- Firefox | ||
- IE | ||
- Safari | ||
|
||
## How to contribute | ||
|
||
Before starting, please read our [Code of Conduct](./CODE_OF_CONDUCT./) and [Contributing Guidelines](./CONTRIBUTING_GUIDELINES.md) for detailed information and instructions on contributing to this repository. | ||
|
||
Please note that `browser-agent/collection` is a generated collection from the code-base of `browser-agent` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import fs from 'fs' | ||
import pjson from '../package.json' assert { type: 'json' } | ||
import base from '../package-collection.json' assert { type: 'json' } | ||
|
||
const readme = fs.readFileSync('./README-COLLECTION.md', { | ||
flag: 'r', | ||
}) | ||
|
||
// Keep versions in sync | ||
const packageCollection = { | ||
...base, | ||
version: pjson.version, | ||
} | ||
|
||
fs.writeFileSync( | ||
'./collection/package.json', | ||
JSON.stringify(packageCollection), | ||
{ flag: 'w+' }, | ||
) | ||
|
||
fs.writeFileSync('./collection/README.md', readme, { flag: 'w+' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "browser-agent/collection", | ||
"description": "Use userAgent collection of browser-agent", | ||
"type": "module", | ||
"repository": "[email protected]:TessavWalstijn/browser-id.git", | ||
"author": "TessavWalstijn <[email protected]>", | ||
"license": "MIT", | ||
"types": "./dist/userAgents.d.ts", | ||
"exports": { | ||
"require": "./dist/userAgents.cjs", | ||
"import": "./dist/userAgents.js" | ||
}, | ||
"main": "./dist/userAgents.cjs", | ||
"engines": { | ||
"node": ">= 16" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "browser-agent", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "Get users browser & os information (Uses userAgent)", | ||
"type": "module", | ||
"repository": "[email protected]:TessavWalstijn/browser-id.git", | ||
"repository": "[email protected]:TessavWalstijn/browser-agent.git", | ||
"author": "TessavWalstijn <[email protected]>", | ||
"license": "MIT", | ||
"packageManager": "[email protected]", | ||
|
@@ -14,8 +14,11 @@ | |
}, | ||
"main": "./dist/index.cjs", | ||
"scripts": { | ||
"collection:update": "ts-node --project tsconfig.dev.json ./build/collection", | ||
"collection:build": "cd ./collection && tsup ../source/browsers/userAgents.ts --format esm,cjs,iife --dts", | ||
"collection:publish": "cd ./collection && npm publish --access public", | ||
"dev": "ts-node --project tsconfig.dev.json ./source/dev", | ||
"build": "tsup source/index.ts --format esm,cjs --dts", | ||
"build": "tsup source/index.ts --format esm,cjs,iife --dts", | ||
"build:test": "vitest --config vitest.build.config.ts", | ||
"build:tsc": "yarn build:esm && yarn build:cjs", | ||
"build:esm": "npx tsc --build tsconfig.esm.json", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './chrome.js' | ||
export * from './chrome.userAgents.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './edge.js' | ||
export * from './edge.userAgents.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './firefox.js' | ||
export * from './firefox.userAgents.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './ie.js' | ||
export * from './ie.userAgents.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './safari.js' | ||
export * from './safari.userAgents.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { iBrowser } from './browser.types' | ||
|
||
export interface iUserAgent { | ||
values: string[] | ||
browser: iBrowser | ||
} | ||
|
||
export interface iCollectionUserAgents { | ||
[key: string]: iUserAgent[] | ||
} |
Oops, something went wrong.