Compare commits

..
Author SHA1 Message Date
Jonathan Lipps d4ce2a82d9 chore: publish
- appium@2.9.0
 - @appium/base-driver@9.9.0
 - @appium/base-plugin@2.2.35
 - @appium/doctor@2.1.2
 - @appium/docutils@1.0.11
 - @appium/driver-test-support@0.5.0
 - @appium/fake-plugin@3.1.39
 - @appium/images-plugin@3.0.10
 - @appium/logger@1.3.0
 - @appium/plugin-test-support@0.3.34
 - @appium/support@4.5.0
 - @appium/test-support@3.0.39
 - @appium/types@0.19.2
2024-06-06 16:25:41 -07:00
Kazuaki Matsuo 40def9dbdb fix(appium): Revert changes in 20203 and 20202 (#20209)
* Revert "feat(appium): Add session signature to all logs (#20202)"

This reverts commit b3f8a47c2d.

* Revert "feat(logger): Add the 'debug' level to the default logger (#20203)"

This reverts commit 7fd9d5f626.
2024-06-06 16:17:57 -07:00
Mykola Mokhnach b3f8a47c2d feat(appium): Add session signature to all logs (#20202) 2024-06-06 22:46:52 +02:00
32 changed files with 245 additions and 114 deletions
+55 -55
View File
@@ -21665,17 +21665,17 @@
}
},
"packages/appium": {
"version": "2.8.0",
"version": "2.9.0",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"@appium/base-driver": "^9.8.1",
"@appium/base-plugin": "^2.2.34",
"@appium/docutils": "^1.0.10",
"@appium/logger": "^1.2.0",
"@appium/base-driver": "^9.9.0",
"@appium/base-plugin": "^2.2.35",
"@appium/docutils": "^1.0.11",
"@appium/logger": "^1.3.0",
"@appium/schema": "~0.5.0",
"@appium/support": "^4.4.0",
"@appium/types": "^0.19.1",
"@appium/support": "^4.5.0",
"@appium/types": "^0.19.2",
"@sidvind/better-ajv-errors": "2.1.3",
"@types/argparse": "2.0.16",
"@types/bluebird": "3.5.42",
@@ -21767,11 +21767,11 @@
},
"packages/base-driver": {
"name": "@appium/base-driver",
"version": "9.8.1",
"version": "9.9.0",
"license": "Apache-2.0",
"dependencies": {
"@appium/support": "^4.4.0",
"@appium/types": "^0.19.1",
"@appium/support": "^4.5.0",
"@appium/types": "^0.19.2",
"@colors/colors": "1.6.0",
"@types/async-lock": "1.4.2",
"@types/bluebird": "3.5.42",
@@ -21835,11 +21835,11 @@
},
"packages/base-plugin": {
"name": "@appium/base-plugin",
"version": "2.2.34",
"version": "2.2.35",
"license": "Apache-2.0",
"dependencies": {
"@appium/base-driver": "^9.8.1",
"@appium/support": "^4.4.0"
"@appium/base-driver": "^9.9.0",
"@appium/support": "^4.5.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
@@ -21848,10 +21848,10 @@
},
"packages/doctor": {
"name": "@appium/doctor",
"version": "2.1.1",
"version": "2.1.2",
"license": "Apache-2.0",
"dependencies": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@colors/colors": "1.6.0",
"@types/bluebird": "3.5.42",
"@types/teen_process": "2.0.4",
@@ -22064,10 +22064,10 @@
},
"packages/docutils": {
"name": "@appium/docutils",
"version": "1.0.10",
"version": "1.0.11",
"license": "Apache-2.0",
"dependencies": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@appium/tsconfig": "^0.3.3",
"@sliphua/lilconfig-ts-loader": "3.2.2",
"@types/which": "3.0.4",
@@ -22206,10 +22206,10 @@
},
"packages/driver-test-support": {
"name": "@appium/driver-test-support",
"version": "0.4.26",
"version": "0.5.0",
"license": "Apache-2.0",
"dependencies": {
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"@types/lodash": "4.17.4",
"@types/stoppable": "1.1.3",
"axios": "1.7.2",
@@ -22331,11 +22331,11 @@
},
"packages/fake-plugin": {
"name": "@appium/fake-plugin",
"version": "3.1.38",
"version": "3.1.39",
"license": "Apache-2.0",
"dependencies": {
"@appium/base-plugin": "^2.2.34",
"@appium/support": "^4.4.0",
"@appium/base-plugin": "^2.2.35",
"@appium/support": "^4.5.0",
"@types/bluebird": "3.5.42",
"bluebird": "3.7.2",
"lodash": "4.17.21",
@@ -22351,11 +22351,11 @@
},
"packages/images-plugin": {
"name": "@appium/images-plugin",
"version": "3.0.9",
"version": "3.0.10",
"license": "Apache-2.0",
"dependencies": {
"@appium/opencv": "^3.0.4",
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"lodash": "4.17.21",
"lru-cache": "10.2.2",
"sharp": "0.33.4",
@@ -22446,7 +22446,7 @@
},
"packages/logger": {
"name": "@appium/logger",
"version": "1.2.0",
"version": "1.3.0",
"license": "Apache-2.0",
"dependencies": {
"console-control-strings": "1.1.0",
@@ -22543,10 +22543,10 @@
},
"packages/plugin-test-support": {
"name": "@appium/plugin-test-support",
"version": "0.3.33",
"version": "0.3.34",
"license": "Apache-2.0",
"dependencies": {
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"get-port": "5.1.1",
"log-symbols": "4.1.0",
"source-map-support": "0.5.21",
@@ -22606,12 +22606,12 @@
},
"packages/support": {
"name": "@appium/support",
"version": "4.4.0",
"version": "4.5.0",
"license": "Apache-2.0",
"dependencies": {
"@appium/logger": "^1.2.0",
"@appium/logger": "^1.3.0",
"@appium/tsconfig": "^0.3.3",
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"@colors/colors": "1.6.0",
"@types/archiver": "6.0.2",
"@types/base64-stream": "1.0.5",
@@ -22877,10 +22877,10 @@
},
"packages/test-support": {
"name": "@appium/test-support",
"version": "3.0.38",
"version": "3.0.39",
"license": "Apache-2.0",
"dependencies": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@colors/colors": "1.6.0",
"bluebird": "3.7.2",
"lodash": "4.17.21",
@@ -22911,10 +22911,10 @@
},
"packages/types": {
"name": "@appium/types",
"version": "0.19.1",
"version": "0.19.2",
"license": "Apache-2.0",
"dependencies": {
"@appium/logger": "^1.2.0",
"@appium/logger": "^1.3.0",
"@appium/schema": "^0.5.0",
"@appium/tsconfig": "^0.3.3",
"@types/express": "4.17.21",
@@ -22987,8 +22987,8 @@
"@appium/base-driver": {
"version": "file:packages/base-driver",
"requires": {
"@appium/support": "^4.4.0",
"@appium/types": "^0.19.1",
"@appium/support": "^4.5.0",
"@appium/types": "^0.19.2",
"@colors/colors": "1.6.0",
"@types/async-lock": "1.4.2",
"@types/bluebird": "3.5.42",
@@ -23038,14 +23038,14 @@
"@appium/base-plugin": {
"version": "file:packages/base-plugin",
"requires": {
"@appium/base-driver": "^9.8.1",
"@appium/support": "^4.4.0"
"@appium/base-driver": "^9.9.0",
"@appium/support": "^4.5.0"
}
},
"@appium/doctor": {
"version": "file:packages/doctor",
"requires": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@colors/colors": "1.6.0",
"@types/bluebird": "3.5.42",
"@types/teen_process": "2.0.4",
@@ -23195,7 +23195,7 @@
"@appium/docutils": {
"version": "file:packages/docutils",
"requires": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@appium/tsconfig": "^0.3.3",
"@sliphua/lilconfig-ts-loader": "3.2.2",
"@types/which": "3.0.4",
@@ -23279,7 +23279,7 @@
"@appium/driver-test-support": {
"version": "file:packages/driver-test-support",
"requires": {
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"@types/lodash": "4.17.4",
"@types/stoppable": "1.1.3",
"axios": "1.7.2",
@@ -23342,8 +23342,8 @@
"@appium/fake-plugin": {
"version": "file:packages/fake-plugin",
"requires": {
"@appium/base-plugin": "^2.2.34",
"@appium/support": "^4.4.0",
"@appium/base-plugin": "^2.2.35",
"@appium/support": "^4.5.0",
"@types/bluebird": "3.5.42",
"bluebird": "3.7.2",
"lodash": "4.17.21",
@@ -23354,7 +23354,7 @@
"version": "file:packages/images-plugin",
"requires": {
"@appium/opencv": "^3.0.4",
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"lodash": "4.17.21",
"lru-cache": "10.2.2",
"sharp": "0.33.4",
@@ -23491,7 +23491,7 @@
"@appium/plugin-test-support": {
"version": "file:packages/plugin-test-support",
"requires": {
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"get-port": "5.1.1",
"log-symbols": "4.1.0",
"source-map-support": "0.5.21",
@@ -23523,9 +23523,9 @@
"@appium/support": {
"version": "file:packages/support",
"requires": {
"@appium/logger": "^1.2.0",
"@appium/logger": "^1.3.0",
"@appium/tsconfig": "^0.3.3",
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"@colors/colors": "1.6.0",
"@types/archiver": "6.0.2",
"@types/base64-stream": "1.0.5",
@@ -23719,7 +23719,7 @@
"@appium/test-support": {
"version": "file:packages/test-support",
"requires": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@colors/colors": "1.6.0",
"bluebird": "3.7.2",
"lodash": "4.17.21",
@@ -23737,7 +23737,7 @@
"@appium/types": {
"version": "file:packages/types",
"requires": {
"@appium/logger": "^1.2.0",
"@appium/logger": "^1.3.0",
"@appium/schema": "^0.5.0",
"@appium/tsconfig": "^0.3.3",
"@types/express": "4.17.21",
@@ -26925,13 +26925,13 @@
"appium": {
"version": "file:packages/appium",
"requires": {
"@appium/base-driver": "^9.8.1",
"@appium/base-plugin": "^2.2.34",
"@appium/docutils": "^1.0.10",
"@appium/logger": "^1.2.0",
"@appium/base-driver": "^9.9.0",
"@appium/base-plugin": "^2.2.35",
"@appium/docutils": "^1.0.11",
"@appium/logger": "^1.3.0",
"@appium/schema": "~0.5.0",
"@appium/support": "^4.4.0",
"@appium/types": "^0.19.1",
"@appium/support": "^4.5.0",
"@appium/types": "^0.19.2",
"@sidvind/better-ajv-errors": "2.1.3",
"@types/argparse": "2.0.16",
"@types/bluebird": "3.5.42",
+14
View File
@@ -3,6 +3,20 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [2.9.0](https://github.com/appium/appium/compare/appium@2.8.0...appium@2.9.0) (2024-06-06)
### Features
* **appium:** Add session signature to all logs ([#20202](https://github.com/appium/appium/issues/20202)) ([b3f8a47](https://github.com/appium/appium/commit/b3f8a47c2d3fa029bdb5592d7130c6d1664e53b5))
### Bug Fixes
* **appium:** Revert changes in 20203 and 20202 ([#20209](https://github.com/appium/appium/issues/20209)) ([40def9d](https://github.com/appium/appium/commit/40def9dbdbde64706111900967d66735257b7404)), closes [#20202](https://github.com/appium/appium/issues/20202) [#20203](https://github.com/appium/appium/issues/20203)
## [2.8.0](https://github.com/appium/appium/compare/appium@2.7.0...appium@2.8.0) (2024-06-06)
+2 -1
View File
@@ -1,10 +1,11 @@
import globalLog from '@appium/logger';
import {createLogger, format, transports} from 'winston';
import {fs} from '@appium/support';
import {fs, logger} from '@appium/support';
import { APPIUM_LOGGER_NAME } from './logger';
import _ from 'lodash';
// set up distributed logging before everything else
logger.patchLogger(globalLog);
global._global_npmlog = globalLog;
// npmlog is used only for emitting, we use winston for output
+7 -7
View File
@@ -1,6 +1,6 @@
{
"name": "appium",
"version": "2.8.0",
"version": "2.9.0",
"description": "Automation for Apps.",
"keywords": [
"automation",
@@ -60,13 +60,13 @@
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
"@appium/base-driver": "^9.8.1",
"@appium/base-plugin": "^2.2.34",
"@appium/docutils": "^1.0.10",
"@appium/logger": "^1.2.0",
"@appium/base-driver": "^9.9.0",
"@appium/base-plugin": "^2.2.35",
"@appium/docutils": "^1.0.11",
"@appium/logger": "^1.3.0",
"@appium/schema": "~0.5.0",
"@appium/support": "^4.4.0",
"@appium/types": "^0.19.1",
"@appium/support": "^4.5.0",
"@appium/types": "^0.19.2",
"@sidvind/better-ajv-errors": "2.1.3",
"@types/argparse": "2.0.16",
"@types/bluebird": "3.5.42",
+14
View File
@@ -3,6 +3,20 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [9.9.0](https://github.com/appium/appium/compare/@appium/base-driver@9.8.1...@appium/base-driver@9.9.0) (2024-06-06)
### Features
* **appium:** Add session signature to all logs ([#20202](https://github.com/appium/appium/issues/20202)) ([b3f8a47](https://github.com/appium/appium/commit/b3f8a47c2d3fa029bdb5592d7130c6d1664e53b5))
### Bug Fixes
* **appium:** Revert changes in 20203 and 20202 ([#20209](https://github.com/appium/appium/issues/20209)) ([40def9d](https://github.com/appium/appium/commit/40def9dbdbde64706111900967d66735257b7404)), closes [#20202](https://github.com/appium/appium/issues/20202) [#20203](https://github.com/appium/appium/issues/20203)
## [9.8.1](https://github.com/appium/appium/compare/@appium/base-driver@9.8.0...@appium/base-driver@9.8.1) (2024-06-06)
**Note:** Version bump only for package @appium/base-driver
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/base-driver",
"version": "9.8.1",
"version": "9.9.0",
"description": "Base driver class for Appium drivers",
"keywords": [
"automation",
@@ -44,8 +44,8 @@
"test:types": "tsd"
},
"dependencies": {
"@appium/support": "^4.4.0",
"@appium/types": "^0.19.1",
"@appium/support": "^4.5.0",
"@appium/types": "^0.19.2",
"@colors/colors": "1.6.0",
"@types/async-lock": "1.4.2",
"@types/bluebird": "3.5.42",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [2.2.35](https://github.com/appium/appium/compare/@appium/base-plugin@2.2.34...@appium/base-plugin@2.2.35) (2024-06-06)
**Note:** Version bump only for package @appium/base-plugin
## [2.2.34](https://github.com/appium/appium/compare/@appium/base-plugin@2.2.33...@appium/base-plugin@2.2.34) (2024-06-06)
**Note:** Version bump only for package @appium/base-plugin
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/base-plugin",
"version": "2.2.34",
"version": "2.2.35",
"description": "The base plugin used to create Appium 2.0 plugins",
"keywords": [
"automation",
@@ -40,8 +40,8 @@
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
"@appium/base-driver": "^9.8.1",
"@appium/support": "^4.4.0"
"@appium/base-driver": "^9.9.0",
"@appium/support": "^4.5.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [2.1.2](https://github.com/appium/appium/compare/@appium/doctor@2.1.1...@appium/doctor@2.1.2) (2024-06-06)
**Note:** Version bump only for package @appium/doctor
## [2.1.1](https://github.com/appium/appium/compare/@appium/doctor@2.1.0...@appium/doctor@2.1.1) (2024-06-06)
**Note:** Version bump only for package @appium/doctor
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/doctor",
"version": "2.1.1",
"version": "2.1.2",
"description": "Test environment for fitness to run Appium",
"keywords": [
"automation",
@@ -44,7 +44,7 @@
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@colors/colors": "1.6.0",
"@types/bluebird": "3.5.42",
"@types/teen_process": "2.0.4",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.0.11](https://github.com/appium/appium/compare/@appium/docutils@1.0.10...@appium/docutils@1.0.11) (2024-06-06)
**Note:** Version bump only for package @appium/docutils
## [1.0.10](https://github.com/appium/appium/compare/@appium/docutils@1.0.9...@appium/docutils@1.0.10) (2024-06-06)
**Note:** Version bump only for package @appium/docutils
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/docutils",
"version": "1.0.10",
"version": "1.0.11",
"description": "Documentation generation utilities for Appium and related projects",
"keywords": [
"automation",
@@ -48,7 +48,7 @@
"start": "node ./build/lib/cli/index.js"
},
"dependencies": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@appium/tsconfig": "^0.3.3",
"@sliphua/lilconfig-ts-loader": "3.2.2",
"@types/which": "3.0.4",
+14
View File
@@ -3,6 +3,20 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.5.0](https://github.com/appium/appium/compare/@appium/driver-test-support@0.4.26...@appium/driver-test-support@0.5.0) (2024-06-06)
### Features
* **appium:** Add session signature to all logs ([#20202](https://github.com/appium/appium/issues/20202)) ([b3f8a47](https://github.com/appium/appium/commit/b3f8a47c2d3fa029bdb5592d7130c6d1664e53b5))
### Bug Fixes
* **appium:** Revert changes in 20203 and 20202 ([#20209](https://github.com/appium/appium/issues/20209)) ([40def9d](https://github.com/appium/appium/commit/40def9dbdbde64706111900967d66735257b7404)), closes [#20202](https://github.com/appium/appium/issues/20202) [#20203](https://github.com/appium/appium/issues/20203)
## [0.4.26](https://github.com/appium/appium/compare/@appium/driver-test-support@0.4.25...@appium/driver-test-support@0.4.26) (2024-06-06)
**Note:** Version bump only for package @appium/driver-test-support
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/driver-test-support",
"version": "0.4.26",
"version": "0.5.0",
"description": "Test utilities for Appium drivers",
"keywords": [
"automation",
@@ -41,7 +41,7 @@
},
"types": "./build/lib/index.d.ts",
"dependencies": {
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"@types/lodash": "4.17.4",
"@types/stoppable": "1.1.3",
"axios": "1.7.2",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.1.39](https://github.com/appium/appium/compare/@appium/fake-plugin@3.1.38...@appium/fake-plugin@3.1.39) (2024-06-06)
**Note:** Version bump only for package @appium/fake-plugin
## [3.1.38](https://github.com/appium/appium/compare/@appium/fake-plugin@3.1.37...@appium/fake-plugin@3.1.38) (2024-06-06)
**Note:** Version bump only for package @appium/fake-plugin
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/fake-plugin",
"version": "3.1.38",
"version": "3.1.39",
"description": "A fake Appium 2.0 plugin",
"keywords": [
"automation",
@@ -39,8 +39,8 @@
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
"@appium/base-plugin": "^2.2.34",
"@appium/support": "^4.4.0",
"@appium/base-plugin": "^2.2.35",
"@appium/support": "^4.5.0",
"@types/bluebird": "3.5.42",
"bluebird": "3.7.2",
"lodash": "4.17.21",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.0.10](https://github.com/appium/appium/compare/@appium/images-plugin@3.0.9...@appium/images-plugin@3.0.10) (2024-06-06)
**Note:** Version bump only for package @appium/images-plugin
## [3.0.9](https://github.com/appium/appium/compare/@appium/images-plugin@3.0.8...@appium/images-plugin@3.0.9) (2024-06-06)
**Note:** Version bump only for package @appium/images-plugin
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/images-plugin",
"version": "3.0.9",
"version": "3.0.10",
"description": "Plugin for working with images and image elements in Appium",
"keywords": [
"automation",
@@ -40,7 +40,7 @@
},
"dependencies": {
"@appium/opencv": "^3.0.4",
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"lodash": "4.17.21",
"lru-cache": "10.2.2",
"sharp": "0.33.4",
+14
View File
@@ -3,6 +3,20 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.3.0](https://github.com/appium/appium/compare/@appium/logger@1.2.0...@appium/logger@1.3.0) (2024-06-06)
### Features
* **appium:** Add session signature to all logs ([#20202](https://github.com/appium/appium/issues/20202)) ([b3f8a47](https://github.com/appium/appium/commit/b3f8a47c2d3fa029bdb5592d7130c6d1664e53b5))
### Bug Fixes
* **appium:** Revert changes in 20203 and 20202 ([#20209](https://github.com/appium/appium/issues/20209)) ([40def9d](https://github.com/appium/appium/commit/40def9dbdbde64706111900967d66735257b7404)), closes [#20202](https://github.com/appium/appium/issues/20202) [#20203](https://github.com/appium/appium/issues/20203)
## [1.2.0](https://github.com/appium/appium/compare/@appium/logger@1.1.0...@appium/logger@1.2.0) (2024-06-06)
+2 -8
View File
@@ -6,12 +6,10 @@ import consoleControl from 'console-control-strings';
import * as util from 'node:util';
import type {MessageObject, StyleObject, Logger, LogLevel} from './types';
import type {Writable} from 'node:stream';
import { unleakString } from './utils';
const DEFAULT_LOG_LEVELS: any[][] = [
['silly', -Infinity, {inverse: true}, 'sill'],
['verbose', 1000, {fg: 'cyan', bg: 'black'}, 'verb'],
['debug', 1500, {fg: 'cyan', bg: 'black'}, 'dbug'],
['info', 2000, {fg: 'green'}],
['timing', 2500, {fg: 'green', bg: 'black'}],
['http', 3000, {fg: 'green', bg: 'black'}],
@@ -116,10 +114,6 @@ export class Log extends EventEmitter implements Logger {
this.log('verbose', prefix, message, ...args);
}
debug(prefix: string, message: any, ...args: any[]): void {
this.log('debug', prefix, message, ...args);
}
info(prefix: string, message: any, ...args: any[]): void {
this.log('info', prefix, message, ...args);
}
@@ -196,8 +190,8 @@ export class Log extends EventEmitter implements Logger {
id: this._id++,
timestamp: Date.now(),
level,
prefix: unleakString(prefix || ''),
message: unleakString(formattedMessage),
prefix: String(prefix || ''),
message: formattedMessage,
};
this.emit('log', m);
-2
View File
@@ -25,7 +25,6 @@ export interface Logger extends EventEmitter {
*/
silly(prefix: string, message: any, ...args: any[]): void;
verbose(prefix: string, message: any, ...args: any[]): void;
debug(prefix: string, message: any, ...args: any[]): void;
info(prefix: string, message: any, ...args: any[]): void;
timing(prefix: string, message: any, ...args: any[]): void;
http(prefix: string, message: any, ...args: any[]): void;
@@ -58,7 +57,6 @@ export interface Logger extends EventEmitter {
export type LogLevel =
| 'silly'
| 'verbose'
| 'debug'
| 'info'
| 'timing'
| 'http'
-11
View File
@@ -1,11 +0,0 @@
/**
* This function is necessary to workaround unexpected memory leaks
* caused by NodeJS string interning
* behavior described in https://bugs.chromium.org/p/v8/issues/detail?id=2869
*
* @param {any} s - The string to unleak
* @return {string} Either the unleaked string or the original object converted to string
*/
export function unleakString(s: any): string {
return ` ${s}`.substring(1);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/logger",
"version": "1.2.0",
"version": "1.3.0",
"author": "https://github.com/appium",
"description": "A Universal Logger For The Appium Ecosystem",
"repository": {
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.3.34](https://github.com/appium/appium/compare/@appium/plugin-test-support@0.3.33...@appium/plugin-test-support@0.3.34) (2024-06-06)
**Note:** Version bump only for package @appium/plugin-test-support
## [0.3.33](https://github.com/appium/appium/compare/@appium/plugin-test-support@0.3.32...@appium/plugin-test-support@0.3.33) (2024-06-06)
**Note:** Version bump only for package @appium/plugin-test-support
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/plugin-test-support",
"version": "0.3.33",
"version": "0.3.34",
"description": "Testing utilities for Appium plugins",
"keywords": [
"automation",
@@ -41,7 +41,7 @@
"test:unit": "exit 0"
},
"dependencies": {
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"get-port": "5.1.1",
"log-symbols": "4.1.0",
"source-map-support": "0.5.21",
+14
View File
@@ -3,6 +3,20 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [4.5.0](https://github.com/appium/appium/compare/@appium/support@4.4.0...@appium/support@4.5.0) (2024-06-06)
### Features
* **appium:** Add session signature to all logs ([#20202](https://github.com/appium/appium/issues/20202)) ([b3f8a47](https://github.com/appium/appium/commit/b3f8a47c2d3fa029bdb5592d7130c6d1664e53b5))
### Bug Fixes
* **appium:** Revert changes in 20203 and 20202 ([#20209](https://github.com/appium/appium/issues/20209)) ([40def9d](https://github.com/appium/appium/commit/40def9dbdbde64706111900967d66735257b7404)), closes [#20202](https://github.com/appium/appium/issues/20202) [#20203](https://github.com/appium/appium/issues/20203)
## [4.4.0](https://github.com/appium/appium/compare/@appium/support@4.3.0...@appium/support@4.4.0) (2024-06-06)
+18 -3
View File
@@ -2,6 +2,7 @@
import globalLog from '@appium/logger';
import _ from 'lodash';
import {unleakString} from './util';
import moment from 'moment';
import SECURE_VALUES_PREPROCESSOR from './log-internal';
@@ -17,6 +18,16 @@ for (let level of LEVELS) {
mockLog[level] = () => {};
}
/**
*
* @param {import('@appium/logger').Logger} logger
*/
function patchLogger(logger) {
if (!logger.debug) {
logger.addLevel('debug', 1000, {fg: 'blue', bg: 'black'}, 'dbug');
}
}
/**
*
* @returns {[import('@appium/logger').Logger, boolean]}
@@ -39,6 +50,7 @@ function _getLogger() {
// The default value is 10000, which causes excessive memory usage
logger.maxRecordSize = MAX_LOG_RECORDS_COUNT;
}
patchLogger(logger);
return [logger, usingGlobalLog];
}
@@ -88,7 +100,10 @@ function getLogger(prefix = null) {
for (const arg of args) {
const out = _.isError(arg) && arg.stack ? arg.stack : `${arg}`;
for (const line of out.split('\n')) {
logger[level](actualPrefix, SECURE_VALUES_PREPROCESSOR.preprocess(line));
// it is necessary to unleak each line because `split` call
// creates "views" to the original string as well as the `substring` one
const unleakedLine = unleakString(line);
logger[level](actualPrefix, SECURE_VALUES_PREPROCESSOR.preprocess(unleakedLine));
}
}
};
@@ -96,7 +111,7 @@ function getLogger(prefix = null) {
wrappedLogger.errorWithException = function (/** @type {any[]} */ ...args) {
this.error(...args);
// make sure we have an `Error` object. Wrap if necessary
return _.isError(args[0]) ? args[0] : new Error(args.join('\n'));
return _.isError(args[0]) ? args[0] : new Error(args.map(unleakString).join('\n'));
};
/**
* @deprecated Use {@link errorWithException} instead
@@ -144,7 +159,7 @@ async function loadSecureValuesPreprocessingRules(rulesJsonPath) {
// export a default logger with no prefix
const log = getLogger();
export {log, getLogger, loadSecureValuesPreprocessingRules};
export {log, patchLogger, getLogger, loadSecureValuesPreprocessingRules};
export default log;
/**
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/support",
"version": "4.4.0",
"version": "4.5.0",
"description": "Support libs used across appium packages",
"keywords": [
"automation",
@@ -41,9 +41,9 @@
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
"@appium/logger": "^1.2.0",
"@appium/logger": "^1.3.0",
"@appium/tsconfig": "^0.3.3",
"@appium/types": "^0.19.1",
"@appium/types": "^0.19.2",
"@colors/colors": "1.6.0",
"@types/archiver": "6.0.2",
"@types/base64-stream": "1.0.5",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [3.0.39](https://github.com/appium/appium/compare/@appium/test-support@3.0.38...@appium/test-support@3.0.39) (2024-06-06)
**Note:** Version bump only for package @appium/test-support
## [3.0.38](https://github.com/appium/appium/compare/@appium/test-support@3.0.37...@appium/test-support@3.0.38) (2024-06-06)
**Note:** Version bump only for package @appium/test-support
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/test-support",
"version": "3.0.38",
"version": "3.0.39",
"description": "A collection of test utilities used across Appium packages",
"keywords": [
"automation",
@@ -45,7 +45,7 @@
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
},
"dependencies": {
"@appium/support": "^4.4.0",
"@appium/support": "^4.5.0",
"@colors/colors": "1.6.0",
"bluebird": "3.7.2",
"lodash": "4.17.21",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [0.19.2](https://github.com/appium/appium/compare/@appium/types@0.19.1...@appium/types@0.19.2) (2024-06-06)
**Note:** Version bump only for package @appium/types
## [0.19.1](https://github.com/appium/appium/compare/@appium/types@0.19.0...@appium/types@0.19.1) (2024-06-06)
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@appium/types",
"version": "0.19.1",
"version": "0.19.2",
"description": "Various type declarations used across Appium",
"keywords": [
"automation",
@@ -38,7 +38,7 @@
"test:types": "tsd"
},
"dependencies": {
"@appium/logger": "^1.2.0",
"@appium/logger": "^1.3.0",
"@appium/schema": "^0.5.0",
"@appium/tsconfig": "^0.3.3",
"@types/express": "4.17.21",