ember-inspector 4.13.1-alpha.2024.8.8 → 4.13.1-alpha.2025.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/app/components/app-picker.hbs +2 -2
- package/app/components/component-tree-item.hbs +13 -13
- package/app/components/component-tree-toolbar.hbs +3 -3
- package/app/components/{date-property-field.js → date-property-field.ts} +6 -5
- package/app/components/deprecation-item-source.hbs +1 -1
- package/app/components/deprecation-item.hbs +1 -1
- package/app/components/deprecations-toolbar.hbs +1 -1
- package/app/components/item-types.hbs +7 -7
- package/app/components/list-cell.hbs +3 -3
- package/app/components/list-content.hbs +4 -3
- package/app/components/list-content.ts +96 -0
- package/app/components/list.hbs +3 -3
- package/app/components/list.js +7 -7
- package/app/components/model-types-toolbar.hbs +3 -3
- package/app/components/object-inspector/dependent-keys.hbs +4 -4
- package/app/components/object-inspector/errors.hbs +4 -4
- package/app/components/object-inspector/properties-all.hbs +1 -1
- package/app/components/object-inspector/properties-grouped.hbs +5 -5
- package/app/components/object-inspector/property.hbs +16 -16
- package/app/components/object-inspector/property.ts +26 -17
- package/app/components/object-inspector/sort-properties.js +12 -4
- package/app/components/object-inspector.hbs +8 -8
- package/app/components/object-inspector.js +1 -1
- package/app/components/promise-item.hbs +11 -11
- package/app/components/promise-item.js +8 -6
- package/app/components/promise-tree-toolbar.hbs +5 -5
- package/app/components/records-toolbar.hbs +2 -2
- package/app/components/render-item.hbs +4 -4
- package/app/components/render-item.ts +12 -9
- package/app/components/render-tree-toolbar.hbs +1 -1
- package/app/components/route-cell-name.hbs +1 -1
- package/app/components/route-cell-name.js +3 -2
- package/app/components/route-tree-toolbar.hbs +2 -2
- package/app/components/scroll-container.js +2 -0
- package/app/components/side-nav.hbs +5 -5
- package/app/components/side-nav.js +1 -1
- package/app/computed/{debounce.js → debounce.ts} +7 -5
- package/app/config/environment.d.ts +5 -2
- package/app/controllers/app-config.js +1 -0
- package/app/controllers/application.js +33 -34
- package/app/controllers/component-tree.js +3 -2
- package/app/controllers/container-type.js +2 -1
- package/app/controllers/container-types/{index.js → index.ts} +5 -2
- package/app/controllers/container-types.js +3 -6
- package/app/controllers/deprecations.js +16 -11
- package/app/controllers/libraries.js +1 -0
- package/app/controllers/model-types.js +1 -0
- package/app/controllers/promise-tree.ts +149 -0
- package/app/controllers/records.js +18 -26
- package/app/controllers/{render-tree.js → render-tree.ts} +54 -45
- package/app/controllers/route-tree.js +7 -5
- package/app/helpers/build-style.js +1 -1
- package/app/initializers/setup.js +1 -1
- package/app/libs/promise-assembler.ts +249 -0
- package/app/libs/resizable-columns.js +10 -10
- package/app/models/{promise.js → promise.ts} +72 -69
- package/app/{router.js → router.ts} +1 -1
- package/app/routes/app-detected.js +3 -5
- package/app/routes/application.js +6 -12
- package/app/routes/deprecations.js +7 -16
- package/app/routes/launch.js +2 -1
- package/app/routes/libraries.js +2 -1
- package/app/routes/model-type.js +2 -3
- package/app/routes/model-types.ts +57 -0
- package/app/routes/promise-tree.ts +63 -0
- package/app/routes/records.ts +78 -0
- package/app/routes/render-tree.ts +93 -0
- package/app/routes/route-tree.js +0 -1
- package/app/routes/{tab.js → tab.ts} +9 -2
- package/app/routes/whats-new.js +1 -1
- package/app/services/adapters/{basic.js → basic.ts} +36 -30
- package/app/services/adapters/{bookmarklet.js → bookmarklet.ts} +17 -24
- package/app/services/adapters/{chrome.js → chrome.ts} +1 -2
- package/app/services/adapters/{web-extension.js → web-extension.ts} +43 -46
- package/app/services/adapters/websocket.ts +40 -0
- package/app/services/layout.ts +88 -0
- package/app/services/port.ts +195 -0
- package/app/services/storage/{local.js → local.ts} +7 -20
- package/app/services/storage/{memory.js → memory.ts} +6 -21
- package/app/services/{storage.js → storage.ts} +9 -20
- package/app/styles/base.scss +4 -2
- package/app/styles/colors.scss +33 -31
- package/app/styles/component_tree.scss +56 -51
- package/app/styles/dropdown.scss +2 -2
- package/app/styles/ember-table.scss +3 -3
- package/app/styles/mixin.scss +26 -26
- package/app/styles/object_inspector.scss +22 -21
- package/app/styles/utils.scss +408 -122
- package/app/templates/application.hbs +11 -11
- package/app/templates/component-tree.hbs +1 -1
- package/app/templates/deprecations.hbs +2 -3
- package/app/templates/info.hbs +10 -10
- package/app/templates/promise-tree.hbs +1 -1
- package/app/templates/render-tree.hbs +1 -1
- package/app/templates/route-tree.hbs +1 -1
- package/app/utils/escape-reg-exp.ts +3 -2
- package/app/utils/nullish.ts +7 -0
- package/app/utils/parse-text.ts +4 -5
- package/app/utils/truncate.js +0 -1
- package/config/ember-cli-update.json +5 -3
- package/config/ember-try.js +117 -72
- package/config/environment.js +1 -1
- package/config/optional-features.json +2 -1
- package/dist/bookmarklet/load_inspector.js +30 -11
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.css +150 -155
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.js +486 -590
- package/dist/bookmarklet/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.css +147 -148
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.js +5153 -5980
- package/dist/bookmarklet/panes-3-16-0/ember_debug.js +250 -268
- package/dist/bookmarklet/panes-3-16-0/index.html +3 -4
- package/dist/chrome/background.js +26 -21
- package/dist/chrome/boot.js +1 -1
- package/dist/chrome/content-script.js +11 -11
- package/dist/chrome/devtools.js +12 -3
- package/dist/chrome/manifest.json +2 -2
- package/dist/chrome/options.js +17 -12
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.css +150 -155
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.js +486 -590
- package/dist/chrome/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/chrome/panes-3-16-0/assets/vendor.css +147 -148
- package/dist/chrome/panes-3-16-0/assets/vendor.js +5153 -5980
- package/dist/chrome/panes-3-16-0/ember_debug.js +250 -268
- package/dist/chrome/panes-3-16-0/index.html +3 -4
- package/dist/chrome/scripts/in-page-script.js +19 -13
- package/dist/firefox/background.js +26 -21
- package/dist/firefox/boot.js +1 -1
- package/dist/firefox/content-script.js +11 -11
- package/dist/firefox/devtools.js +12 -3
- package/dist/firefox/manifest.json +2 -2
- package/dist/firefox/options.js +17 -12
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.css +150 -155
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.js +486 -590
- package/dist/firefox/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/firefox/panes-3-16-0/assets/vendor.css +147 -148
- package/dist/firefox/panes-3-16-0/assets/vendor.js +5153 -5980
- package/dist/firefox/panes-3-16-0/ember_debug.js +250 -268
- package/dist/firefox/panes-3-16-0/index.html +3 -4
- package/dist/firefox/scripts/in-page-script.js +19 -13
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/websocket/assets/chunk.524.6a5edcbbcf29cbe1b167.js +40 -0
- package/dist/websocket/assets/chunk.582.b77d8494154b524e9f91.js +42 -0
- package/dist/websocket/assets/ember-inspector.css +150 -155
- package/dist/websocket/assets/ember-inspector.js +486 -590
- package/dist/websocket/assets/svg/ellipsis.svg +3 -3
- package/dist/websocket/assets/svg/nav-bug.svg +1 -1
- package/dist/websocket/assets/svg/nav-components.svg +2 -2
- package/dist/websocket/assets/svg/nav-container.svg +1 -1
- package/dist/websocket/assets/svg/nav-data.svg +1 -1
- package/dist/websocket/assets/svg/nav-deprecations.svg +3 -3
- package/dist/websocket/assets/svg/nav-info.svg +3 -3
- package/dist/websocket/assets/svg/nav-promises.svg +2 -2
- package/dist/websocket/assets/svg/nav-render-performance.svg +2 -2
- package/dist/websocket/assets/svg/nav-route-tree.svg +7 -7
- package/dist/websocket/assets/vendor.css +147 -148
- package/dist/websocket/assets/vendor.js +5153 -5980
- package/dist/websocket/ember_debug.js +250 -268
- package/dist/websocket/index.html +3 -4
- package/ember-cli-build.js +11 -11
- package/ember_debug/adapters/basic.js +2 -1
- package/ember_debug/adapters/bookmarklet.js +1 -0
- package/ember_debug/adapters/firefox.js +3 -3
- package/ember_debug/adapters/web-extension.js +2 -1
- package/ember_debug/data-debug.js +5 -6
- package/ember_debug/deprecation-debug.js +8 -8
- package/ember_debug/general-debug.js +1 -1
- package/ember_debug/libs/capture-render-tree.js +0 -1
- package/ember_debug/libs/promise-assembler.js +1 -0
- package/ember_debug/libs/render-tree.js +13 -12
- package/ember_debug/libs/source-map.js +5 -4
- package/ember_debug/libs/view-inspection.js +12 -12
- package/ember_debug/main.js +1 -1
- package/ember_debug/models/profile-manager.js +2 -1
- package/ember_debug/object-inspector.js +19 -18
- package/ember_debug/port.js +1 -0
- package/ember_debug/promise-debug.js +1 -1
- package/ember_debug/route-debug.js +3 -2
- package/ember_debug/services/session.js +1 -1
- package/ember_debug/utils/classify.js +1 -1
- package/ember_debug/utils/ember/debug.js +2 -0
- package/ember_debug/utils/ember/loader.js +2 -2
- package/ember_debug/utils/ember/runloop.js +2 -0
- package/ember_debug/utils/ember-object-names.js +2 -2
- package/ember_debug/utils/ember.js +9 -3
- package/ember_debug/utils/evented.js +1 -1
- package/ember_debug/utils/get-object-name.js +2 -2
- package/ember_debug/utils/rsvp.js +1 -0
- package/ember_debug/utils/type-check.js +5 -1
- package/ember_debug/vendor/startup-wrapper.js +4 -1
- package/ember_debug/view-debug.js +3 -2
- package/eslint.config.mjs +172 -0
- package/gulpfile.js +1 -1
- package/lib/ui/addon/components/drag-handle.hbs +4 -4
- package/lib/ui/addon/components/drag-handle.js +3 -1
- package/lib/ui/addon/components/empty-message.hbs +1 -1
- package/lib/ui/addon/components/error-page.hbs +3 -3
- package/lib/ui/addon/components/resizable-column.js +1 -1
- package/lib/ui/addon/components/toolbar-clear-button.hbs +1 -1
- package/lib/ui/addon/components/toolbar-reload-button.hbs +1 -1
- package/lib/ui/addon/components/toolbar-search-field.hbs +2 -2
- package/lib/ui/addon/styles/_disclosure-triangle.scss +3 -1
- package/lib/ui/addon/styles/_drag-handle.scss +7 -7
- package/lib/ui/addon/styles/_empty-message.scss +1 -1
- package/lib/ui/addon/styles/_error-page.scss +8 -7
- package/lib/ui/addon/styles/_list.scss +46 -45
- package/lib/ui/addon/styles/_nav.scss +29 -27
- package/lib/ui/addon/styles/_object-inspector-toggle.scss +5 -5
- package/lib/ui/addon/styles/_pill.scss +4 -4
- package/lib/ui/addon/styles/_send-to-console.scss +1 -1
- package/lib/ui/addon/styles/_split.scss +17 -20
- package/lib/ui/addon/styles/addon.scss +13 -13
- package/lib/ui/addon/styles/toolbar/_checkbox.scss +5 -5
- package/lib/ui/addon/styles/toolbar/_icon-button.scss +44 -25
- package/lib/ui/addon/styles/toolbar/_index.scss +6 -5
- package/lib/ui/addon/styles/toolbar/_radio.scss +10 -10
- package/lib/ui/addon/styles/toolbar/_search.scss +5 -3
- package/package.json +85 -86
- package/public/assets/svg/ellipsis.svg +3 -3
- package/public/assets/svg/nav-bug.svg +1 -1
- package/public/assets/svg/nav-components.svg +2 -2
- package/public/assets/svg/nav-container.svg +1 -1
- package/public/assets/svg/nav-data.svg +1 -1
- package/public/assets/svg/nav-deprecations.svg +3 -3
- package/public/assets/svg/nav-info.svg +3 -3
- package/public/assets/svg/nav-promises.svg +2 -2
- package/public/assets/svg/nav-render-performance.svg +2 -2
- package/public/assets/svg/nav-route-tree.svg +7 -7
- package/scripts/download-panes.js +1 -1
- package/skeletons/bookmarklet/load_inspector.js +30 -11
- package/skeletons/web-extension/background.js +26 -21
- package/skeletons/web-extension/boot.js +1 -1
- package/skeletons/web-extension/content-script.js +11 -11
- package/skeletons/web-extension/devtools.js +12 -3
- package/skeletons/web-extension/manifest.json +2 -2
- package/skeletons/web-extension/options.js +17 -12
- package/skeletons/web-extension/scripts/in-page-script.js +19 -13
- package/testem.js +0 -1
- package/tests/acceptance/app-picker-test.js +4 -4
- package/tests/acceptance/component-tree-test.js +43 -57
- package/tests/acceptance/container-test.js +0 -2
- package/tests/acceptance/data-test.js +8 -10
- package/tests/acceptance/deprecation-test.js +8 -12
- package/tests/acceptance/info-test.js +2 -2
- package/tests/acceptance/object-inspector-test.js +62 -110
- package/tests/acceptance/promise-test.js +1 -11
- package/tests/acceptance/render-tree-test.js +2 -2
- package/tests/acceptance/route-tree-test.js +12 -14
- package/tests/acceptance/whats-new-test.js +3 -3
- package/tests/ember_debug/container-debug-test.js +4 -4
- package/tests/ember_debug/deprecation-debug-test.js +8 -5
- package/tests/ember_debug/ember-debug-test.js +1 -4
- package/tests/ember_debug/object-inspector-test.js +44 -44
- package/tests/ember_debug/profile-manager-test.js +140 -165
- package/tests/ember_debug/profile-node-test.js +3 -3
- package/tests/ember_debug/promise-assembler-test.js +12 -9
- package/tests/ember_debug/promise-debug-test.js +5 -6
- package/tests/ember_debug/route-debug-test.js +8 -7
- package/tests/ember_debug/view-debug-test.js +179 -181
- package/tests/helpers/{index.js → index.ts} +6 -5
- package/tests/helpers/setup-ember-debug-test.js +14 -0
- package/tests/integration/injection-test.js +12 -13
- package/tests/test-adapter.js +15 -15
- package/tests/test-helper.js +6 -1
- package/tests/unit/check-current-route-test.js +0 -4
- package/tests/unit/resizable-columns-test.js +53 -51
- package/tests/unit/utils/parse-text-test.js +3 -3
- package/tests/unit/utils/search-match-test.js +5 -5
- package/tests/unit/utils/type-check-test.js +22 -0
- package/tsconfig.json +3 -1
- package/types/ember-inspector/index.d.ts +2 -1
- package/types/global.d.ts +1 -7
- package/.editorconfig +0 -19
- package/.ember-cli +0 -15
- package/.eslintignore +0 -33
- package/.eslintrc.js +0 -86
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -30
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/dependabot.yml +0 -14
- package/.github/pull_request_template.md +0 -4
- package/.github/workflows/build.yml +0 -339
- package/.github/workflows/plan-release.yml +0 -83
- package/.github/workflows/publish.yml +0 -60
- package/.prettierignore +0 -25
- package/.prettierrc.js +0 -14
- package/.release-plan.json +0 -17
- package/.stylelintrc.js +0 -3
- package/.template-lintrc.js +0 -12
- package/.tool-versions +0 -2
- package/.watchmanconfig +0 -3
- package/app/components/.gitkeep +0 -0
- package/app/components/list-content.js +0 -130
- package/app/controllers/.gitkeep +0 -0
- package/app/controllers/promise-tree.js +0 -130
- package/app/helpers/.gitkeep +0 -0
- package/app/libs/promise-assembler.js +0 -169
- package/app/models/.gitkeep +0 -0
- package/app/routes/.gitkeep +0 -0
- package/app/routes/model-types.js +0 -47
- package/app/routes/promise-tree.js +0 -48
- package/app/routes/records.js +0 -55
- package/app/routes/render-tree.js +0 -66
- package/app/services/adapters/websocket.js +0 -31
- package/app/services/layout.js +0 -39
- package/app/services/port.js +0 -90
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/chrome/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/firefox/panes-3-16-0/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/websocket/assets/chunk.143.152107b52f1d9b56abd2.js +0 -28
- package/dist/websocket/assets/chunk.178.fd17fd3a54b4e3a24554.js +0 -9
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/ember_debug/.eslintrc.js +0 -13
- package/tests/helpers/trigger-port.js +0 -6
- package/tests/unit/.gitkeep +0 -0
- /package/app/{app.js → app.ts} +0 -0
- /package/app/controllers/{info.js → info.ts} +0 -0
- /package/app/services/adapters/{firefox.js → firefox.ts} +0 -0
@@ -35,6 +35,7 @@ module('Ember Debug - Deprecation', function (hooks) {
|
|
35
35
|
|
36
36
|
this.owner.register(
|
37
37
|
'route:application',
|
38
|
+
// eslint-disable-next-line ember/no-classic-classes
|
38
39
|
Route.extend({
|
39
40
|
setupController() {
|
40
41
|
EmberDebug.IGNORE_DEPRECATIONS = false;
|
@@ -59,9 +60,10 @@ module('Ember Debug - Deprecation', function (hooks) {
|
|
59
60
|
});
|
60
61
|
EmberDebug.IGNORE_DEPRECATIONS = true;
|
61
62
|
},
|
62
|
-
})
|
63
|
+
}),
|
63
64
|
);
|
64
65
|
|
66
|
+
// eslint-disable-next-line ember/no-runloop
|
65
67
|
run(EmberDebug.port, 'trigger', 'deprecation:watch');
|
66
68
|
|
67
69
|
await visit('/');
|
@@ -74,7 +76,7 @@ module('Ember Debug - Deprecation', function (hooks) {
|
|
74
76
|
assert.strictEqual(
|
75
77
|
deprecation.sources.length,
|
76
78
|
2,
|
77
|
-
'Correctly separated by source'
|
79
|
+
'Correctly separated by source',
|
78
80
|
);
|
79
81
|
|
80
82
|
deprecation = deprecations[1];
|
@@ -87,14 +89,14 @@ module('Ember Debug - Deprecation', function (hooks) {
|
|
87
89
|
});
|
88
90
|
|
89
91
|
test('Warns once about deprecations', async function t(assert) {
|
90
|
-
assert.expect(2);
|
91
92
|
let count = 0;
|
93
|
+
// eslint-disable-next-line ember/no-runloop
|
92
94
|
run(EmberDebug.port, 'trigger', 'deprecation:watch');
|
93
95
|
EmberDebug.port.adapter.reopen({
|
94
96
|
warn(message) {
|
95
97
|
assert.strictEqual(
|
96
98
|
message,
|
97
|
-
'Deprecations were detected, see the Ember Inspector deprecations tab for more details.'
|
99
|
+
'Deprecations were detected, see the Ember Inspector deprecations tab for more details.',
|
98
100
|
);
|
99
101
|
assert.strictEqual(++count, 1, 'Warns once');
|
100
102
|
},
|
@@ -102,6 +104,7 @@ module('Ember Debug - Deprecation', function (hooks) {
|
|
102
104
|
|
103
105
|
this.owner.register(
|
104
106
|
'route:application',
|
107
|
+
// eslint-disable-next-line ember/no-classic-classes
|
105
108
|
Route.extend({
|
106
109
|
setupController() {
|
107
110
|
EmberDebug.IGNORE_DEPRECATIONS = false;
|
@@ -119,7 +122,7 @@ module('Ember Debug - Deprecation', function (hooks) {
|
|
119
122
|
});
|
120
123
|
EmberDebug.IGNORE_DEPRECATIONS = true;
|
121
124
|
},
|
122
|
-
})
|
125
|
+
}),
|
123
126
|
);
|
124
127
|
|
125
128
|
await visit('/');
|
@@ -25,14 +25,12 @@ module('Ember Debug', function (hooks) {
|
|
25
25
|
try {
|
26
26
|
EmberDebug.inspect(obj);
|
27
27
|
assert.ok(false);
|
28
|
-
} catch
|
28
|
+
} catch {
|
29
29
|
// Intentionally empty
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
33
33
|
test('EmberDebug#inspect sends inspectable objects', function (assert) {
|
34
|
-
assert.expect(2);
|
35
|
-
|
36
34
|
let obj = EmberObject.create();
|
37
35
|
EmberDebug.inspect(obj);
|
38
36
|
assert.strictEqual(name, 'objectInspector:updateObject');
|
@@ -46,7 +44,6 @@ module('Ember Debug', function (hooks) {
|
|
46
44
|
});
|
47
45
|
|
48
46
|
test('Errors are caught and handled by EmberDebug', async function t(assert) {
|
49
|
-
assert.expect(1);
|
50
47
|
const error = new Error('test error');
|
51
48
|
EmberDebug.port.on('test:errors', () => {
|
52
49
|
throw error;
|
@@ -1,10 +1,12 @@
|
|
1
|
-
/* eslint-disable ember/avoid-leaking-state-in-ember-objects, ember/no-new-mixins */
|
1
|
+
/* eslint-disable ember/avoid-leaking-state-in-ember-objects, ember/no-classic-classes, ember/no-new-mixins, ember/no-runloop */
|
2
2
|
import { find, visit } from '@ember/test-helpers';
|
3
3
|
import Mixin from '@ember/object/mixin';
|
4
|
+
// eslint-disable-next-line ember/no-classic-components
|
4
5
|
import Component from '@ember/component';
|
5
6
|
import { inspect } from '@ember/debug';
|
6
7
|
import { run } from '@ember/runloop';
|
7
8
|
import { guidFor } from '@ember/object/internals';
|
9
|
+
// eslint-disable-next-line ember/no-computed-properties-in-native-classes
|
8
10
|
import EmberObject, { computed } from '@ember/object';
|
9
11
|
import MutableArray from '@ember/array/mutable';
|
10
12
|
import ArrayProxy from '@ember/array/proxy';
|
@@ -25,7 +27,7 @@ import Controller from '@ember/controller';
|
|
25
27
|
const GlimmerComponent = (function () {
|
26
28
|
try {
|
27
29
|
return require('@glimmer/component').default;
|
28
|
-
} catch
|
30
|
+
} catch {
|
29
31
|
// ignore, return undefined
|
30
32
|
}
|
31
33
|
})();
|
@@ -89,8 +91,8 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
89
91
|
'template:application',
|
90
92
|
hbs(
|
91
93
|
'<div class="application" style="line-height: normal;">{{outlet}}</div>',
|
92
|
-
{ moduleName: 'my-app/templates/application.hbs' }
|
93
|
-
)
|
94
|
+
{ moduleName: 'my-app/templates/application.hbs' },
|
95
|
+
),
|
94
96
|
);
|
95
97
|
this.owner.register('route:simple', EmberRoute);
|
96
98
|
this.owner.register('component:x-simple', Component);
|
@@ -99,7 +101,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
99
101
|
hbs`
|
100
102
|
{{! template-lint-disable}}
|
101
103
|
Simple <Input class="simple-input"/> {{x-simple class="simple-view"}}
|
102
|
-
|
104
|
+
`,
|
103
105
|
);
|
104
106
|
|
105
107
|
objectInspector = EmberDebug.objectInspector;
|
@@ -138,7 +140,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
138
140
|
assert.strictEqual(
|
139
141
|
firstDetail.properties.length,
|
140
142
|
4,
|
141
|
-
'methods are included'
|
143
|
+
'methods are included',
|
142
144
|
);
|
143
145
|
|
144
146
|
let idProperty = firstDetail.properties[0];
|
@@ -185,7 +187,6 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
185
187
|
}
|
186
188
|
|
187
189
|
class Parent {
|
188
|
-
// eslint-disable-next-line constructor-super
|
189
190
|
constructor(param) {
|
190
191
|
Object.assign(this, param);
|
191
192
|
}
|
@@ -236,7 +237,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
236
237
|
assert.strictEqual(
|
237
238
|
firstDetail.properties.length,
|
238
239
|
6,
|
239
|
-
'methods are included'
|
240
|
+
'methods are included',
|
240
241
|
);
|
241
242
|
|
242
243
|
let objectWithTrackedProperty = firstDetail.properties[0];
|
@@ -370,7 +371,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
370
371
|
expectedMixinNames.forEach((expectedMixinName, i) => {
|
371
372
|
assert.ok(
|
372
373
|
mixinNames[i].includes(expectedMixinName),
|
373
|
-
`${mixinNames[i]} : ${expectedMixinName}
|
374
|
+
`${mixinNames[i]} : ${expectedMixinName}`,
|
374
375
|
);
|
375
376
|
});
|
376
377
|
});
|
@@ -463,7 +464,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
463
464
|
assert.strictEqual(
|
464
465
|
details[0].properties.length,
|
465
466
|
1,
|
466
|
-
'should not show mixin properties'
|
467
|
+
'should not show mixin properties',
|
467
468
|
);
|
468
469
|
assert.strictEqual(details[0].properties[0].name, 'ownProp');
|
469
470
|
|
@@ -471,22 +472,22 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
471
472
|
assert.strictEqual(
|
472
473
|
details[2].properties.length,
|
473
474
|
1,
|
474
|
-
'should only show own mixin properties'
|
475
|
+
'should only show own mixin properties',
|
475
476
|
);
|
476
477
|
assert.strictEqual(
|
477
478
|
details[2].properties[0].value.inspect,
|
478
|
-
inspect('custom1')
|
479
|
+
inspect('custom1'),
|
479
480
|
);
|
480
481
|
|
481
482
|
assert.strictEqual(details[3].name, 'MyMixin2');
|
482
483
|
assert.strictEqual(
|
483
484
|
details[3].properties.length,
|
484
485
|
1,
|
485
|
-
'should only show own mixin properties'
|
486
|
+
'should only show own mixin properties',
|
486
487
|
);
|
487
488
|
assert.strictEqual(
|
488
489
|
details[3].properties[0].value.inspect,
|
489
|
-
inspect('custom2')
|
490
|
+
inspect('custom2'),
|
490
491
|
);
|
491
492
|
});
|
492
493
|
|
@@ -648,7 +649,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
648
649
|
});
|
649
650
|
});
|
650
651
|
|
651
|
-
assert.strictEqual(inspected.
|
652
|
+
assert.strictEqual(inspected.name, 'Alex');
|
652
653
|
|
653
654
|
assert.strictEqual(message.property, 'name');
|
654
655
|
assert.strictEqual(message.value.inspect, inspect('Alex'));
|
@@ -674,9 +675,9 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
674
675
|
});
|
675
676
|
});
|
676
677
|
|
677
|
-
assert.strictEqual(inspected.
|
678
|
-
assert.strictEqual(inspected.
|
679
|
-
assert.strictEqual(inspected.
|
678
|
+
assert.strictEqual(inspected.date.getFullYear(), 2015);
|
679
|
+
assert.strictEqual(inspected.date.getMonth(), 0);
|
680
|
+
assert.strictEqual(inspected.date.getDate(), 1);
|
680
681
|
|
681
682
|
assert.strictEqual(message.property, 'date');
|
682
683
|
assert.strictEqual(message.value.inspect, inspect(newDate));
|
@@ -746,42 +747,42 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
746
747
|
assert.strictEqual(
|
747
748
|
message.details[2].properties.length,
|
748
749
|
0,
|
749
|
-
'Correctly skips properties'
|
750
|
+
'Correctly skips properties',
|
750
751
|
);
|
751
752
|
|
752
753
|
assert.strictEqual(message.details[3].name, 'TestObject');
|
753
754
|
assert.strictEqual(
|
754
755
|
message.details[3].properties.length,
|
755
756
|
3,
|
756
|
-
'Correctly merges properties'
|
757
|
+
'Correctly merges properties',
|
757
758
|
);
|
758
759
|
|
759
760
|
const toString = message.details[3].properties.find(
|
760
|
-
(p) => p.name === 'toString'
|
761
|
+
(p) => p.name === 'toString',
|
761
762
|
);
|
762
763
|
const hasChildren = message.details[3].properties.find(
|
763
|
-
(p) => p.name === 'hasChildren'
|
764
|
+
(p) => p.name === 'hasChildren',
|
764
765
|
);
|
765
766
|
const expensiveProperty = message.details[3].properties.find(
|
766
|
-
(p) => p.name === 'expensiveProperty'
|
767
|
+
(p) => p.name === 'expensiveProperty',
|
767
768
|
);
|
768
769
|
assert.ok(toString, 'has toString');
|
769
770
|
assert.ok(hasChildren, 'has hasChildren');
|
770
771
|
assert.strictEqual(
|
771
772
|
expensiveProperty.name,
|
772
773
|
'expensiveProperty',
|
773
|
-
'property name is correct'
|
774
|
+
'property name is correct',
|
774
775
|
);
|
775
776
|
assert.strictEqual(
|
776
777
|
expensiveProperty.value.isCalculated,
|
777
778
|
undefined,
|
778
|
-
'Does not calculate expensive properties'
|
779
|
+
'Does not calculate expensive properties',
|
779
780
|
);
|
780
781
|
|
781
782
|
assert.notStrictEqual(
|
782
783
|
message.details[3].name,
|
783
784
|
'MixinToSkip',
|
784
|
-
'Correctly skips mixins'
|
785
|
+
'Correctly skips mixins',
|
785
786
|
);
|
786
787
|
});
|
787
788
|
|
@@ -846,7 +847,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
846
847
|
|
847
848
|
assert.ok(
|
848
849
|
message.name.includes('ObjectProxy'),
|
849
|
-
'object name should start with <ObjectProxy:'
|
850
|
+
'object name should start with <ObjectProxy:',
|
850
851
|
);
|
851
852
|
|
852
853
|
assert.strictEqual(message.details[0].name, 'Basic Info');
|
@@ -861,38 +862,38 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
861
862
|
assert.strictEqual(
|
862
863
|
message.details[2].properties.length,
|
863
864
|
0,
|
864
|
-
'Correctly skips properties'
|
865
|
+
'Correctly skips properties',
|
865
866
|
);
|
866
867
|
|
867
868
|
assert.strictEqual(message.details[3].name, 'TestObject');
|
868
869
|
assert.strictEqual(
|
869
870
|
message.details[3].properties.length,
|
870
871
|
3,
|
871
|
-
'Correctly merges properties'
|
872
|
+
'Correctly merges properties',
|
872
873
|
);
|
873
874
|
|
874
875
|
const hasChildren = message.details[3].properties.find(
|
875
|
-
(p) => p.name === 'hasChildren'
|
876
|
+
(p) => p.name === 'hasChildren',
|
876
877
|
);
|
877
878
|
const expensiveProperty = message.details[3].properties.find(
|
878
|
-
(p) => p.name === 'expensiveProperty'
|
879
|
+
(p) => p.name === 'expensiveProperty',
|
879
880
|
);
|
880
881
|
assert.strictEqual(hasChildren.name, 'hasChildren');
|
881
882
|
assert.strictEqual(
|
882
883
|
expensiveProperty.name,
|
883
884
|
'expensiveProperty',
|
884
|
-
'property name is correct'
|
885
|
+
'property name is correct',
|
885
886
|
);
|
886
887
|
assert.strictEqual(
|
887
888
|
expensiveProperty.value.isCalculated,
|
888
889
|
undefined,
|
889
|
-
'Does not calculate expensive properties'
|
890
|
+
'Does not calculate expensive properties',
|
890
891
|
);
|
891
892
|
|
892
893
|
assert.notStrictEqual(
|
893
894
|
message.details[3].name,
|
894
895
|
'MixinToSkip',
|
895
|
-
'Correctly skips mixins'
|
896
|
+
'Correctly skips mixins',
|
896
897
|
);
|
897
898
|
});
|
898
899
|
|
@@ -962,7 +963,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
962
963
|
|
963
964
|
assert.ok(
|
964
965
|
objectInspector.sentObjects[objectId],
|
965
|
-
'Object successfully retained.'
|
966
|
+
'Object successfully retained.',
|
966
967
|
);
|
967
968
|
|
968
969
|
await visit('/');
|
@@ -985,7 +986,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
985
986
|
|
986
987
|
assert.ok(
|
987
988
|
objectInspector.sentObjects[objectId],
|
988
|
-
'Object successfully retained.'
|
989
|
+
'Object successfully retained.',
|
989
990
|
);
|
990
991
|
|
991
992
|
message = await captureMessage('objectInspector:droppedObject', () => {
|
@@ -997,7 +998,6 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
997
998
|
assert.deepEqual(message, { objectId });
|
998
999
|
});
|
999
1000
|
|
1000
|
-
// eslint-disable-next-line qunit/require-expect
|
1001
1001
|
test('Properties ending with `Binding` are skipped', async function (assert) {
|
1002
1002
|
let object = EmberObject.create({
|
1003
1003
|
bar: 'test',
|
@@ -1011,14 +1011,14 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
1011
1011
|
assert.strictEqual(
|
1012
1012
|
props.length,
|
1013
1013
|
2,
|
1014
|
-
'Props should be foo and bar without fooBinding'
|
1014
|
+
'Props should be foo and bar without fooBinding',
|
1015
1015
|
);
|
1016
1016
|
assert.strictEqual(props[1].name, 'foo');
|
1017
1017
|
} else {
|
1018
1018
|
assert.strictEqual(
|
1019
1019
|
props.length,
|
1020
1020
|
1,
|
1021
|
-
'Props should be only bar without fooBinding, in Ember 3.0+'
|
1021
|
+
'Props should be only bar without fooBinding, in Ember 3.0+',
|
1022
1022
|
);
|
1023
1023
|
}
|
1024
1024
|
assert.strictEqual(props[0].name, 'bar');
|
@@ -1058,7 +1058,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
1058
1058
|
}
|
1059
1059
|
return 'bar';
|
1060
1060
|
}),
|
1061
|
-
}).create()
|
1061
|
+
}).create(),
|
1062
1062
|
);
|
1063
1063
|
|
1064
1064
|
let message = await inspectObject(object);
|
@@ -1253,7 +1253,7 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
1253
1253
|
`template:components/foo`,
|
1254
1254
|
hbs('text only', {
|
1255
1255
|
moduleName: 'my-app/templates/components/foo.hbs',
|
1256
|
-
})
|
1256
|
+
}),
|
1257
1257
|
);
|
1258
1258
|
await visit('/simple');
|
1259
1259
|
|
@@ -1280,17 +1280,17 @@ module('Ember Debug - Object Inspector', function (hooks) {
|
|
1280
1280
|
assert.strictEqual(
|
1281
1281
|
properties.indexOf('bounds'),
|
1282
1282
|
-1,
|
1283
|
-
'does not contain bounds'
|
1283
|
+
'does not contain bounds',
|
1284
1284
|
);
|
1285
1285
|
assert.strictEqual(
|
1286
1286
|
properties.indexOf('element'),
|
1287
1287
|
-1,
|
1288
|
-
'does not contain element'
|
1288
|
+
'does not contain element',
|
1289
1289
|
);
|
1290
1290
|
assert.strictEqual(
|
1291
1291
|
properties.indexOf('debugName'),
|
1292
1292
|
-1,
|
1293
|
-
'does not contain debugName'
|
1293
|
+
'does not contain debugName',
|
1294
1294
|
);
|
1295
1295
|
});
|
1296
1296
|
}
|