0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
posthog/package.json

91 lines
2.9 KiB
JSON
Raw Normal View History

2020-01-25 00:57:57 +01:00
{
Configure mypy (#562) * server/mypy: Enable no_implicit_optional no_implicit_optional Changes the treatment of arguments with a default value of None by not implicitly making their type Optional. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#none-and-optional-handling * server/mypy: Enable warn_unused_ignores warn_unused_ignores: Warns about unneeded # type: ignore comments. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#configuring-warnings It's best to exclude packages with no typing in mypy.ini rather than in the code. This waym if tin the future these packages add types it's can easily be disabled (by removing the exclusion in mypy.ini). * api/user: Fix user password was not really validated * api/test/base: Remove unreachable code Team is created in setup, so no reason for it not to be there (unless setUp is overriden by child, which as far as I can see is currently not happening), * server/mypy: Enable check_untyped_defs check_untyped_defs: Type-checks the interior of functions without type annotations. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#untyped-definitions-and-calls * server/mypy: Enable strict_equality strict_equality: Prohibit equality checks, identity checks, and container checks between non-overlapping types. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#miscellaneous-strictness-flags * server/mypy: Enable warn_unreachable Added a fixme for a possible oversight in function that parses JSON. warn_unreachable: Shows a warning when encountering any code inferred to be unreachable or redundant after performing type analysis. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#configuring-warnings * api/posthog: fix possible bug when batch is not a list Current code assumes batch is a valid list. If batch is not a list, the capture handling will cause a 500 error. * fix stricter mypy * Use response.json instead of .data Co-authored-by: Haki Benita <hakibenita@gmail.com>
2020-04-14 12:05:45 +02:00
"name": "posthog",
"description": "",
"version": "0.0.0",
"repository": {
"type": "git",
"url": "https://github.com/posthog/posthog.git"
},
"author": "",
"bugs": {
"url": "https://github.com/posthog/posthog/issues"
},
"homepage": "https://github.com/posthog/posthog#readme",
"scripts": {
"copy-array": "cp node_modules/posthog-js/dist/array.js frontend/dist/",
"start": "mkdir -p frontend/dist/ && cp -a frontend/public/* frontend/dist/ && npm run copy-array && webpack --config webpack.config.js --watch",
"build": "NODE_ENV=production webpack --config webpack.config.js && cp -a frontend/public/* frontend/dist/ && npm run copy-array",
"prettier": "prettier --write \"./frontend/src/**/*.{js,css,scss}\""
},
"license": "MIT",
"dependencies": {
"@babel/core": "^7.8.7",
"@babel/runtime": "^7.8.7",
"antd": "^4.1.1",
"babel-preset-nano-react-app": "^0.1.0",
"bootstrap": "^4.4.1",
"chart.js": "^2.9.3",
"core-js": "3",
"d3": "^5.15.0",
"d3-sankey": "^0.12.3",
"editor": "^1.0.0",
"funnel-graph-js": "^1.4.1",
Routing Refactor (#717) * extract some components from EventsTable * event table refactor * move logic and load next events * flip sort order * eventSelected -> selectedEvent * put all next fetching through the same fetchEvents action * event polling * onClick not needed * refactor EventElements into separate file * unique key for events table based on the view that is open * disable filtering in actions page * use <A> tag * fix === * make property filter update the filter through the browser URL * move from react-router to kea-router * add root redirect * fix dashboard urls * remove <A /> tag, keep using <Link /> * load events before the scene opens * rename ActionEvents -> LiveActions * use eventsTableLogic for live actions * when removing a filter, assure that there is a {} at the end * save path so that we don't update anymore when we move off the page * preload logic before scene * better name for property filters * fix default search input uncontrolled error * set property filters through the url * refactor some variable names * clean active views and cached urls, add "order" to actions from url * fix some linter errors * build and pass logic * turn actionFilterLogic into a controlled logic * make it work * small code improvements * use properties from kea-router's search params * upgrade kea-router * use properties hash * rename actionFilterLogic.js to entityFilterLogic.js and pass logic down in props * more entityFilterLogic cleanup * use new router for trends * use objectsEqual instead of manual JSON.stringify comparison * router.values.searchParams in propertyFilterLogic.js * adding new entity type works * always highlight something in the sidebar * remove unused FilterLink.js * refactor active submenu * add query to link to /people * funnels work again * split property filters per id of funnel * set $pageview or $screen as default action in /trends if just opening the URL, sparking loads of joy * fix uncontrolled<->controlled input warning * simpler loading, without breaking DOM rules * cleaner loading screens * fix uncontrolled to controlled warning * do not show links to myself if showing events table under /person/:id * uncontrolled - controlled input * remove broken link to step event, fix duplicate key errors * table loading as overlay if something in table * show loading overlay only after 500ms * undefined fix * 2 more undefined fixes * use kea-router's combineUrl instead of the homebrewn toParams() * date filter returns dates as strings
2020-05-07 11:48:04 +02:00
"kea": "^2.0.0-beta.7",
"kea-loaders": "^0.1.1",
Routing Refactor (#717) * extract some components from EventsTable * event table refactor * move logic and load next events * flip sort order * eventSelected -> selectedEvent * put all next fetching through the same fetchEvents action * event polling * onClick not needed * refactor EventElements into separate file * unique key for events table based on the view that is open * disable filtering in actions page * use <A> tag * fix === * make property filter update the filter through the browser URL * move from react-router to kea-router * add root redirect * fix dashboard urls * remove <A /> tag, keep using <Link /> * load events before the scene opens * rename ActionEvents -> LiveActions * use eventsTableLogic for live actions * when removing a filter, assure that there is a {} at the end * save path so that we don't update anymore when we move off the page * preload logic before scene * better name for property filters * fix default search input uncontrolled error * set property filters through the url * refactor some variable names * clean active views and cached urls, add "order" to actions from url * fix some linter errors * build and pass logic * turn actionFilterLogic into a controlled logic * make it work * small code improvements * use properties from kea-router's search params * upgrade kea-router * use properties hash * rename actionFilterLogic.js to entityFilterLogic.js and pass logic down in props * more entityFilterLogic cleanup * use new router for trends * use objectsEqual instead of manual JSON.stringify comparison * router.values.searchParams in propertyFilterLogic.js * adding new entity type works * always highlight something in the sidebar * remove unused FilterLink.js * refactor active submenu * add query to link to /people * funnels work again * split property filters per id of funnel * set $pageview or $screen as default action in /trends if just opening the URL, sparking loads of joy * fix uncontrolled<->controlled input warning * simpler loading, without breaking DOM rules * cleaner loading screens * fix uncontrolled to controlled warning * do not show links to myself if showing events table under /person/:id * uncontrolled - controlled input * remove broken link to step event, fix duplicate key errors * table loading as overlay if something in table * show loading overlay only after 500ms * undefined fix * 2 more undefined fixes * use kea-router's combineUrl instead of the homebrewn toParams() * date filter returns dates as strings
2020-05-07 11:48:04 +02:00
"kea-router": "^0.3.0",
Configure mypy (#562) * server/mypy: Enable no_implicit_optional no_implicit_optional Changes the treatment of arguments with a default value of None by not implicitly making their type Optional. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#none-and-optional-handling * server/mypy: Enable warn_unused_ignores warn_unused_ignores: Warns about unneeded # type: ignore comments. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#configuring-warnings It's best to exclude packages with no typing in mypy.ini rather than in the code. This waym if tin the future these packages add types it's can easily be disabled (by removing the exclusion in mypy.ini). * api/user: Fix user password was not really validated * api/test/base: Remove unreachable code Team is created in setup, so no reason for it not to be there (unless setUp is overriden by child, which as far as I can see is currently not happening), * server/mypy: Enable check_untyped_defs check_untyped_defs: Type-checks the interior of functions without type annotations. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#untyped-definitions-and-calls * server/mypy: Enable strict_equality strict_equality: Prohibit equality checks, identity checks, and container checks between non-overlapping types. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#miscellaneous-strictness-flags * server/mypy: Enable warn_unreachable Added a fixme for a possible oversight in function that parses JSON. warn_unreachable: Shows a warning when encountering any code inferred to be unreachable or redundant after performing type analysis. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#configuring-warnings * api/posthog: fix possible bug when batch is not a list Current code assumes batch is a valid list. If batch is not a list, the capture handling will cause a 500 error. * fix stricter mypy * Use response.json instead of .data Co-authored-by: Haki Benita <hakibenita@gmail.com>
2020-04-14 12:05:45 +02:00
"moment": "^2.24.0",
"posthog-js": "1.0.7-beta.0",
"prop-types": "^15.7.2",
"react": ">= 16.8",
"react-beautiful-dnd": "^12.2.0",
"react-datepicker": "^2.13.0",
"react-dnd": "^10.0.2",
"react-dom": ">= 16.8",
"react-draggable": "^4.2.0",
"react-redux": "^7.2.0",
"react-select": "^3.0.8",
"react-shadow": "^17.4.0",
"react-stripe-elements": "^6.0.1",
"react-toastify": "^5.5.0",
"redux": "^4.0.5",
"reselect": "^4.0.0",
"sass": "^1.26.2",
"simmerjs": "^0.5.6",
"style.css": "^1.0.0",
"styled-components": "^5.0.1"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-transform-react-jsx": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"autoprefixer": "^9.7.4",
"babel-loader": "^8.0.6",
"babel-plugin-import": "^1.13.0",
"babel-plugin-kea": "^0.1.0",
Configure mypy (#562) * server/mypy: Enable no_implicit_optional no_implicit_optional Changes the treatment of arguments with a default value of None by not implicitly making their type Optional. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#none-and-optional-handling * server/mypy: Enable warn_unused_ignores warn_unused_ignores: Warns about unneeded # type: ignore comments. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#configuring-warnings It's best to exclude packages with no typing in mypy.ini rather than in the code. This waym if tin the future these packages add types it's can easily be disabled (by removing the exclusion in mypy.ini). * api/user: Fix user password was not really validated * api/test/base: Remove unreachable code Team is created in setup, so no reason for it not to be there (unless setUp is overriden by child, which as far as I can see is currently not happening), * server/mypy: Enable check_untyped_defs check_untyped_defs: Type-checks the interior of functions without type annotations. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#untyped-definitions-and-calls * server/mypy: Enable strict_equality strict_equality: Prohibit equality checks, identity checks, and container checks between non-overlapping types. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#miscellaneous-strictness-flags * server/mypy: Enable warn_unreachable Added a fixme for a possible oversight in function that parses JSON. warn_unreachable: Shows a warning when encountering any code inferred to be unreachable or redundant after performing type analysis. Ref: https://mypy.readthedocs.io/en/stable/config_file.html#configuring-warnings * api/posthog: fix possible bug when batch is not a list Current code assumes batch is a valid list. If batch is not a list, the capture handling will cause a 500 error. * fix stricter mypy * Use response.json instead of .data Co-authored-by: Haki Benita <hakibenita@gmail.com>
2020-04-14 12:05:45 +02:00
"css-loader": "^3.4.2",
"cssnano": "^4.1.10",
"file-loader": "^5.1.0",
"husky": ">=4",
"lint-staged": ">=10",
"mini-css-extract-plugin": "^0.9.0",
"parcel-bundler": "1.11.0",
"postcss-loader": "^3.0.0",
"prettier": "1.19.1",
"sass-loader": "^8.0.2",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
2020-04-14 16:31:04 +02:00
"*.{js,css,scss}": "prettier --write"
},
"optionalDependencies": {
"fsevents": "^2.1.2"
2020-03-14 15:53:14 +01:00
}
2020-01-25 00:57:57 +01:00
}