-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated discovery, added what's new page * Updated discovery, updated esbuild, fixed build script, added whatsnew content * Last tweaks
- Loading branch information
Showing
12 changed files
with
324 additions
and
210 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,6 +1,6 @@ | ||
{ | ||
"name": "jsondiscovery", | ||
"version": "1.13.4", | ||
"version": "1.13.5", | ||
"description": "Browser (Chrome, Firefox) extension for JSON discovery", | ||
"author": "[email protected]", | ||
"license": "MIT", | ||
|
@@ -11,10 +11,10 @@ | |
"build": "NODE_ENV=production node ./scripts/build.js && node ./scripts/zip.js" | ||
}, | ||
"devDependencies": { | ||
"@discoveryjs/discovery": "1.0.0-beta.68", | ||
"@discoveryjs/discovery": "1.0.0-beta.81", | ||
"@discoveryjs/json-ext": "^0.5.7", | ||
"css-tree": "^2.3.1", | ||
"esbuild": "^0.19.4", | ||
"esbuild": "^0.20.1", | ||
"eslint": "^8.50.0", | ||
"jszip": "^3.10.1", | ||
"mime": "^3.0.0" | ||
|
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as default } from './default'; | ||
export { default as raw } from './raw'; | ||
export { default as settings } from './settings'; | ||
export { default as whatsnew } from './whatsnew'; |
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,4 @@ | ||
.discovery-root[data-page="whatsnew"] { | ||
--discovery-page-padding-left: 40px; | ||
--discovery-page-padding-right: 40px; | ||
} |
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,31 @@ | ||
import whatsnew from './whatsnew.md'; | ||
|
||
export const setWhatsnewViewed = ({ version }) => { | ||
if (version && typeof chrome !== 'undefined') { | ||
chrome.storage.sync.set({ whatsnew: { | ||
[version]: true | ||
} }); | ||
} | ||
}; | ||
export const showWhatsNew = context => { | ||
const { version } = context; | ||
return !version ? false : !( | ||
context && | ||
context.settings && | ||
context.settings.whatsnew && | ||
context.settings.whatsnew[version] | ||
); | ||
}; | ||
|
||
export default host => { | ||
host.page.define('whatsnew', { | ||
view: 'block', | ||
content: [{ | ||
view: 'page-header', | ||
content: 'h1:"What\'s new"' | ||
}, { | ||
view: 'markdown', | ||
source: whatsnew | ||
}] | ||
}); | ||
}; |
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,26 @@ | ||
## 1.13.5 | ||
|
||
### Interface & Views | ||
|
||
- Reworked the report page to include a query graph and an enhanced query editor. | ||
- Added a "Copy report as page hash" button. | ||
- Implemented [`tooltip`](#views-showcase&!anchor=tooltip) as an option for all views. | ||
- Introduced new options and improvements for the `struct`, `markdown`, and `source` views. | ||
- Changed the default rendering of arrays in a table cell to display the number of elements instead of `[…]`. | ||
|
||
See details in [Discovery.js release notes](https://github.com/discoveryjs/discovery/releases). | ||
|
||
### Jora Query Language | ||
|
||
- **New Methods**: | ||
- **String and array processing**: Added `indexOf()`, `lastIndexOf()`, `replace()`, `toLowerCase()`, `toUpperCase()`, and `trim()` methods. | ||
- **Statistics**: Introduced `min()`, `max()`, `numbers()`, `sum()`, `avg()`, `count()`, `variance()`, `stdev()`, `percentile()` (with alias `p()`), and `median()`. | ||
- **Math**: Added a suite of math methods such as `abs()`, `acos()`, and many others, aligning closely with JavaScript's `Math` object functions. | ||
- **New Operators and Syntax Enhancements**: | ||
- Introduced the nullish coalescing operator (`??`). | ||
- Added [assertions](https://discoveryjs.github.io/jora/#article:jora-syntax-assertions) to enhance conditional checks with the `is` operator, e.g., `is number` or `is not (number or string)`. | ||
- Provided basic support for function arguments in the syntax, enabling `$arg => expr` and `($a, $b) => expr` forms. | ||
- Updated queries to start with a pipeline operator, e.g., `| expr`. | ||
- Modified the ternary operator to allow optional components, enabling syntaxes like `expr ? : []`, `expr ? 1`, and `expr?`, with a default structure of `expr ? $ : undefined` when parts are omitted. | ||
|
||
For more details, see the [Jora release notes](https://github.com/discoveryjs/jora/releases) for versions between 1.0.0-beta.7 & 1.0.0-beta.10. |