-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Monorepo Subdirectory Declaration RFC #19
Add Monorepo Subdirectory Declaration RFC #19
Conversation
I use the |
@zkat on Discord:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm with #19 (comment) on this one -- it's unclear what value this adds to any particular thing -- homepage
seems to be a perfectly reasonable way to handle this. When you're talking about a monorepo, the repo is the repo, after all. Why not use that?
It's useful to differentiate between "the code" and "the landing page", the same reason there's a "repo" vs a "homepage" - it'd be useful to be able to point clearly to the location of the machine-cloneable code, without bypassing the convenience of linking to a nice human-readable webpage. |
Yeah, the |
@zkat The This RFC is supposed to solve the problem for Dependabot and any other tool (maybe At this time there is no canonical way to define the path to the package within the git repository of a monorepo. Some projects use Take a look at dependabot/feedback#121 for some more info on this use-case. Thanks 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good and the alternatives are well said.
I don't think that the npm website needs to handle this right now so maybe that can be optional part of this RFC.
The most significant part of this RFC is adding a property to the package.json
spec for 3rd party tools to rely upon.
This field would help Sourcegraph with supporting cross-repository go-to-definition. |
@zkat - is there any update to your review in light of the comments above? To give a very specific use case example, a user contact Dependabot today asking if we could provide a better commit compare view for |
So we talked about it further, and I think this is fine! We're actually glad you RFCed this sort of thing! As far as implementation: this would basically be a PR to documents of what a So I think you can consider this ratified! Congratulations, and thanks for the time to write this up, and the excellent examples and ensuing discussion! I'll merge this as soon as the |
@zkat does that mean the website would be updated to look at "directory"? |
@zkat - done, and I'll put a PR into github.com/npm/cli now for that change. Having this RFC accepted is enough for me to start putting PRs in to monorepos to start using it, so I don't want to say anything that blocks that. I'm very 👍 on merging this as is. In addition, in future it would be awesome to build on this RFC by including the directory when constructing the repository link from npmjs.com (e.g., for react-dom the repository link would go here, and perhaps the header should be "Source" to remove ambiguity), and include the directory in the API response (e.g., for react-dom). I'm not sure where to PR those changes - can you point me in the right direction, or if the repos are private let me know how I can put in a request? Hopefully the API change one is a one-liner somewhere, with the contentious stuff already approved courtesy of this RFC 🙂 |
I agree that the website should use this information, which is one of the best ways for people to discover that this feature exists and to convince them to use it. Some projects like Babel use GitHub blob URLs in The API should already return package.json contents as they were published afaik. |
Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19.
Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](npm/rfcs#19).
Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19.
…4628) Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19.
…4628) Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19.
@zkat - psyched to have this working, and adopted by a bunch of major monorepos. Thanks for all your help on it. I've just had algolia/npm-search#320 merged, which will mean the directory can be easily included when generating the repository URL for folks using Algolia. Is there a place that I can PR a change to the npmjs.org website, so that repository links there pick it up, too? |
* [DateInput] Add support for datepicker clearButtonText and todayButtonText props. (palantir#3020) * [DateInput] Add datepicker clearButtonText and todayButtonText props support. * [DateInput] Add unit test for clearButtonText and todayButtonText props. * include integrity hashes in yarn lock (palantir#3035) * Publish - @blueprintjs/docs-theme@3.0.2 * Publish - @blueprintjs/docs-theme@3.0.3 - @blueprintjs/karma-build-scripts@0.9.0 - @blueprintjs/node-build-scripts@0.8.0 - @blueprintjs/webpack-build-scripts@0.7.0 * Fix reset of active item when query hasn't changed (palantir#3072) * Fix reset active item when query hasn't changed * Address comments * [DateInput] close on tab key press (palantir#3038) * Publish - @blueprintjs/datetime@3.3.1 - @blueprintjs/select@3.2.1 * Correct Table reference to HTMLTable (palantir#3075) Also correct link to html-table page. * 🔧 fix dependencies (palantir#3078) * node-gyp resolution * * dep for build-scripts packages * yarn.lock * preview script won't fail build without GH_AUTH_TOKEN * update yarn min version in readme * fix icons alignment (palantir#3102) * [Breadcrumb] Add current prop (palantir#3104) * Render breadcrumb children (palantir#3105) * fix checkbox indicator display (palantir#3113) * Only set default font-family on body selector (palantir#3115) * [FormGroup] add contentClassName and style props (palantir#3120) * add contentClassName prop * add style prop * [Portal] add container prop (palantir#3045) * [Portal] add container prop * [Overlay] add container prop * [Popover] add container prop * [Tooltip] add container prop * [Dialog] add container prop * [Alert] add container prop * fix test failed * [portal] avoid possible crash on componentDidMount * rename container to portalContainer for overlay components * chore: remove useless code * add isotest for className prop (palantir#3119) * four args become two. add className isotest. refactor generateIsomorphicTests() to use config object in mapped type * refactor isotest suites to new config object * [Tag] fix line-height for centering (palantir#3117) * fix lint error * set tag line-height to icon size * $tag-line-height(-large) vars * fix label documentation example (palantir#3087) * fix label documentation example * Use class constants * remove first id * Label B * added new icon (palantir#3052) * [table] Perf improvements with selections (palantir#2005) * table performance improvements - reducing rerendering where possible * reinstate enum strings * fix compile errors * fix lint errors * fix test * cell: revert changes * code review suggestions; add forceRerenderOnSelectionChange flag * lint * default to false * remove unused logo styles from navbar (palantir#3123) * [Breadcrumbs] Add new component (palantir#3106) * Add breadcrumbs component * Use lambda syntax * Add overflow list props * Disable overflow menu items * Add missing prop docs * Document new Breadcrumb special case * Add Breadcrumbs prop docs * Use ul tag * Add test to OverflowList * Add tests to Breadcrumb * Add tests for Breadcrumbs * Fix docstring Co-Authored-By: invliD <mail@invlid.com> * Improve docstring Co-Authored-By: invliD <mail@invlid.com> * Fix Breadcrumb docs * Fix linebreak * Default breadcrumbRenderer * Explain why the menu is reversed * Add link to OL * Add code example * Re-use breadcrumbs example using different name * docs edits * Publish - @blueprintjs/core@3.8.0 - @blueprintjs/icons@3.3.0 - @blueprintjs/table@3.3.0 * fix disappearing caret on focus of HTMLSelect in ControlGroup (fixes palantir#3003) (palantir#3150) * Single Month Only Prop in DateRangePicker (palantir#3142) * allow singleMonthlyOnly in DateRangePicker * updated docs comment * added singleMonthOnly props in DateRangeInput * added DateRangeInput test to ensure prop is passed * updated documentation and example labels * Allow users to browse omnibar options without query (palantir#3130) * Using tagName JSX variable for MenuItem (palantir#3061) * Using tagName JSX variable for MenuItem * Fixed minnor default issues as per the requests on PR * [Overlay] add portalClassName to IOverlayableProps (palantir#3148) * add portalClassName to IOverlayableProps * fix overlay test * unmount dialog test * fix HTML_TABLE_CONDENSED name (reverts 3.x break) (palantir#3147) * Don't clear TagInput inputValue state if controlled (palantir#3137) * Don't clear TagInput inputValue state if controlled Fixes palantir#3134 * Address PR comments * Revert fixes * remove margin on heading-only callouts (palantir#3157) * PopoverPosition = Position + auto values (palantir#3156) * [Select] Flag to optionally scroll to active item for select components (palantir#3096) * Flag to optionally scroll to active item for select components * Respect click and keyboard interactions * Change docs * edit prop docs * add uncontrolled note * docs edits (palantir#3161) * [tslint] blueprint-html-components fixer! (palantir#3162) * enable strict mode in tslint-config * sort imports before adding * blueprint-html-components fixes imports * refactors * replaceTagName util * test formatting * add test for all imports * h2/h5 * ts-lint --fix (palantir#3159) * relaxed typings for optional JSX.Elements (palantir#3118) * export type OptionalElement = JSX.Element | boolean | null | undefined; use it in `icon` props * more uses of OptionalElement * Icons docs uses props * MaybeElement, false * [Popover] add boundary prop for easier modifiers (palantir#3149) * Popover add boundariesElement prop for easier modifiers * rename to boundary * rename type to PopperBoundary * fix examples * Publish - @blueprintjs/core@3.9.0 - @blueprintjs/datetime@3.4.0 - @blueprintjs/select@3.3.0 - @blueprintjs/tslint-config@1.7.0 * Fixed bug where new timeout prop passed to toastr update was ignored (palantir#3164) * Fix change activeItem when query changes on props for QueryList (palantir#3180) * Fix change activeItem when query changes on props for QueryList * move willRecieveProps to componentDidUpdate * put back * fix import. VSCode - I ahte you * Replace calendar months const enum with enum (palantir#3182) * Include "enable preview comments" in PR templates (palantir#3201) * [select] fix inputprops docs (palantir#3167) * [HTMLTable] fix html props type (palantir#3170) * Add elevation variables in docs (palantir#3202) * FIXED: @HotkeyTarget -> @HotkeysTarget typo (palantir#3208) * [Popover/DateInput] fix tabIndex & inputRef support (palantir#3200) * fix Popover openOnTargetFocus tabIndex logic * refactor DateInput inputRef logic & add tests * fix import path * add corresponding InputGroup tests * update sandbox URL (palantir#3206) * [NumericInput] ❤️ (palantir#3204) * ref type | null * remove <T> on react events optional type!! * Keys.isKeyboardClick it's like a method on a java enum! * total render refactor - FIX: css class is applied when buttons=none - renderButtons() and renderInput() - conditionals to place buttons before or after input - remove special-casing for buttons=none * generate button event handlers, fix key holding one little function to cache handler objects. fix holding enter/space to continuously change value. * onKeyUp handler is obsolete Button handles enter/space click logic. onKeyDown is actually enough - quite elegant. * remove isButtonGroupFocused state set but never read * move shouldSelectAfterUpdate to state so it triggers updates for the selection logic in cmpDidUpdate * required state, missed a <T> * update and refactor tests not much needed here * pull pure methods out to utils file * fix tabs usage * little things: public state, {value} * orgainze * missed a reset * fix return type of Icon.render() (palantir#3190) * [DateRangePicker] Remove unused styling in daterangepicker.scss (palantir#3199) * Remove unused styling in daterangepicker.scss * Configure CircleCI previews * [Tree] add node mouseenter and mouseleave events (palantir#3211) * [Popover] add targetProps (palantir#3213) * add safeInvokeMember util * add Popover targetProps, using new util for overridden events * tests * only one spread * add note about ref * add notes about types * Circle bot logs artifact URLs if auth token is missing (palantir#3209) * upgrade circle-github-bot * refactor script so it logs artifact URLs if auth token is missing * Add htmlTitle prop to Icon (palantir#3216) * add htmlTitle prop to Icon * try to kick circleci? * comment update & backticks * add "on hover" * Added new icons (palantir#3222) * update contributing notes: DO NOT enable Circle for forks. (palantir#3217) * update contributing notes: DO NOT enable Circle for forks. * finish the sentence * [Popover/Tooltip] add public reposition() method to schedule popper update (palantir#3215) * [Popover] public reposition method to schedule popper update * add tooltip.reposition() * [DateRangePicker] Fix caption behavior in contiguous month mode (palantir#3198) * Add failing tests * Use two DayPickers for contiguous months This is so that we can customize the behavior for captions, so the left caption changes the start month/year and the right caption changes the end. * Add additional rendering tests * Lint * Configure CircleCI previews * Add enforcement for contiguousMonth toggling * Publish - @blueprintjs/core@3.10.0 - @blueprintjs/datetime@3.5.0 - @blueprintjs/icons@3.4.0 - @blueprintjs/select@3.4.0 * Update hotkeys.md (palantir#3227) * Added EditableText input type field (palantir#3235) * Fix setState calls using updater functions (palantir#3247) React does not guarantee that the state changes are applied immediately. It is best practice to use an updater function if the new state relies on the current state. * Add menu item classnames (palantir#3251) * Add menu item label classname * Add text classname prop * Alphabetize props & improve docs * docs: tag-input: fix garbled unescaped html appearing due to hard line breaking in md source (palantir#3266) * Fix dialog css docs (palantir#3271) * Added esnext as a build target. (palantir#3230) * [docs] Suggest using `ContextMenuTarget` as a HOC (palantir#3259) Instead of falling back to the imperative API, suggest using `ContextMenuTarget`, where decorators are not an option. * [docs] show optional isDarkTheme parameter in ContextMenu API docs (palantir#3273) To make it more obvious that you can manually create a dark context menu, as raised in palantir#3229 * [ResizeSensor] try/catch findDOMNode to handle possible error state (palantir#3236) * 🔧 upgrade to webpack 4 (palantir#3252) * upgrade to webpack 4 * migrate webpack config * add cssnano, though it doesn't seem to work * fix cssnano in docs-app * small config refactors * upgrade karma deps * migrate karma webpack usage. use webpack alias for enzyme adapter instead of template string * upgrade sinon * skip borked table tests that rely on now-impossible sinon spy behavior. sinonjs/sinon#1711 * fix lint * Use cjs modules for karma testing * Forgot to enable cjs for table * Popover docs: inline -> usePortal={false} (palantir#3277) I _think_ inline is outdated b/c I don't see docs on that prop above. I'm pretty sure this section means to reference `usePortal={false}` instead. * [docs] fix CDN usage & bundle externals (palantir#3276) * update webpack externals * update CDN guide in getting started * push CDN section to the bottom (to avoid distraction) * remove repeated install notes * remove jquery * Publish - @blueprintjs/core@3.11.0 - @blueprintjs/datetime@3.6.0 - @blueprintjs/icons@3.5.0 - @blueprintjs/select@3.5.0 - @blueprintjs/table@3.4.0 - @blueprintjs/timezone@3.2.0 * refactor toast timeout update logic to be more obvious (palantir#3275) always clear timeout when starting to cancel any previous now-outdated active timer. * [OverflowList] Always re-render items (palantir#3278) * Allow overriding of heading typography in Sass (palantir#3283) * [TimezonePicker] Support a custom target via <children> (palantir#3287) * Export getTimezoneMetadata(), add default value for date parameter * Support one custom child in <TimezonePicker> * Update example * Update tests * (nit) Rename to CustomTimezonePickerTarget * Add more docs about possibly ignored props * Update docs * Respond to @giladgray CR * Create CHANGELOG.md * Suggest query remains when closed if nothing is selected. (palantir#3289) * Allow shortcuts to change time in Date Range Picker (palantir#3223) * Allow date range shortcuts to change time * Address PR comments * lint * [Suggest] add `disabled` and `resetOnClose` props (palantir#3292) * add Suggest resetOnClose prop a la Select * add Suggest disabled prop * add resetOnClose switch to example * docs note * [QueryList] Initialize activeItem state correctly based on prop. (palantir#3290) * Initialize QueryList's activeItem state correctly based on prop. * Fix comment typo * Code cleanup * [PanelStack] Allow any prop type for initial panels (palantir#3295) * [Tooltip] allow HOVER interactions (palantir#3291) * [Tag] fill & [TagInput] intent props (palantir#3237) * add Tag fill prop * add TagInput intent prop * add tag fill styles & example switch * docs: Fix link to Popover (palantir#3300) * Add directory details to packages/*/package.json (palantir#3301) Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](npm/rfcs#19). * Add directory to repository details in package.json files (palantir#3299) Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19. * [select] Add optional "itemsEqual" comparator prop to QueryList and related components (palantir#3285) * Improve QueryList and related components to support optional equality test implementation for non-primitive item types. * Revert change to use undefined for representing no selection * Finish revert change to use undefined for representing no selection * Remove TODO * Remove unnecessary param documentation * Rename "areValuesEqual" prop to "itemsEqual" * Improve "itemsEqual" prop to also support a property name. * Documentation typos * Documentation improvements * Update copyright year in new file * Rename new unit test file * [DRP] Shortcuts support changing time & docs (palantir#3293) * shortcut shouldChangeTime => includeTime * revert unnecessary test changes * add Shortcuts docs to DRP * Publish - @blueprintjs/core@3.12.0 - @blueprintjs/datetime@3.7.0 - @blueprintjs/docs-theme@3.0.4 - @blueprintjs/icons@3.5.1 - @blueprintjs/karma-build-scripts@0.9.1 - @blueprintjs/labs@0.16.3 - @blueprintjs/node-build-scripts@0.8.1 - @blueprintjs/select@3.6.0 - @blueprintjs/table@3.4.1 - @blueprintjs/test-commons@0.8.1 - @blueprintjs/timezone@3.3.0 - @blueprintjs/tslint-config@1.7.1 - @blueprintjs/webpack-build-scripts@0.7.1 * [select] consistency refactors (palantir#3305) * code consistency across `select` components: - public state = ... (not inconstructor) - non-optional refs - safeInvokeMember to reduce destructuring * fix tests, explicit null check * dedupe shortcuts prop types (palantir#3311) * [NumericInput] allows min === max (palantir#3296) * NumericInput allows min === max * add test * [NumericInput] new rightElement prop (palantir#3314) * Update select-component.md (palantir#3319) * Fixing typo (palantir#3318) Missing "and" * Added new inbox icons (palantir#3335) * [docs] click to download sketch files from Resources page (palantir#3334) * click to download sketch files from Resources page * lint * use /raw/ url to download actual file * rename resource files so they download correctly * add "Missing fonts?" callout * minor style polish * Add internal text to switch component (palantir#3327) * switch text v0 * font size a bit smaller * add an example of internal text property * test * cleanup * lint fixes * review comments * remove whitespace in tests * more review comments * even more review changes * remove errant property * restore comment * update prop docs * additional tests * remove unnecessary checks * [Spinner] SIZE_SMALL = 20 (palantir#3342) * Spinner.SIZE_SMALL = 20 * fix isotest * [NumericInput] countDecimalPlaces for number type (palantir#3337) Fixes palantir#3336 * New Drawer component (palantir#2957) * add files * fixed styling * dark theme added * Added vertical orientation * changed viewport units * Added small and large sizes * Standardized sizing * backdrop fixed * add tests * small/large => one size prop * update size constants * add hasBackdrop switch to example * use Drawer for API browser * size prop docs * fix isotest * add size+vertical tests, actually run suite * [DatePicker] fix onChange on month change after initial day selection (palantir#3343) * fix onChange doesn't fire on month change after initial day selection Fixes palantir#3340 * change !== to != operator * add test onChange fired when month is changed for uncontrolled datepicker * Publish - @blueprintjs/core@3.13.0 - @blueprintjs/datetime@3.7.1 - @blueprintjs/icons@3.6.0 - @blueprintjs/select@3.6.1 * Corrected the type of Popover's onInteraction prop (palantir#3348) * ButtonGroup supports "fill" prop when Buttons are wrapped in Popovers (palantir#3347) * 🔧 upgrade tslint (palantir#3315) * Fix shortcuts.tsx react import typings (palantir#3356) * [Tabs] add panelClassName prop (palantir#3351) * Fix lint (palantir#3374) * [Core] Fixed not applying intent color for icon inside tree node (palantir#3355) * [Core] Add option to make tree node disabled (palantir#3354) * Drawer default prop warning fix (palantir#3382) * [Select] Create-able Select components (palantir#3381) * Upgrade dev dependencies and types (palantir#3370) * Publish - @blueprintjs/core@3.14.0 - @blueprintjs/docs-app@3.14.0 - @blueprintjs/select@3.7.0 * [Core] Overlay: fix transitionDuration documentation (palantir#3391) * [Core] Fix react types regression (palantir#3390) * Publish - @blueprintjs/core@3.14.1 - @blueprintjs/docs-app@3.14.1 * Publish - @blueprintjs/datetime@3.7.2 * [Core] Checkbox: fix indeterminate state update (palantir#3409) Fixes palantir#3408 * Minor README updates * [Core] Docs: fix small typo (palantir#3411) "accomodate" to "accommodate" * [Docs] Overlay Example: add option to test scrolling behavior (palantir#3406) * Update Bug_report.md * [datetime] docs: fix react-day-picker API hyperlink (palantir#3435) * [core] TagInput: use undefined instead of null to hide clearButton (palantir#3436) * [Select] hide QueryList item list when menuContent and createItemView are both null (palantir#3426) * [MultiSelect] Enable pasting of multiple values (same as TagInput) (palantir#3428) * [Core] Add z-index to panel stack header (palantir#3414) * [Core] Add option to grow text area with input (palantir#3398) * [Core] TextArea: fix style object regression (palantir#3440) * [Core] Add position prop to Drawer component, deprecate vertical prop (palantir#3386) * [Table] Fix resizable props documentation (palantir#3400) * Switch to standard Apache-2.0 license (palantir#3457) * [table] Fix documentation to use the right css file name (palantir#3452) * Prepare release v3.15.0 (palantir#3458) * Publish - @blueprintjs/core@3.15.0 - @blueprintjs/datetime@3.8.0 - @blueprintjs/docs-app@3.15.0 - @blueprintjs/docs-theme@3.1.0 - @blueprintjs/icons@3.7.0 - @blueprintjs/karma-build-scripts@0.10.0 - @blueprintjs/node-build-scripts@0.9.0 - @blueprintjs/select@3.8.0 - @blueprintjs/table@3.5.0 - @blueprintjs/test-commons@0.9.0 - @blueprintjs/timezone@3.4.0 - @blueprintjs/tslint-config@1.8.0 - @blueprintjs/webpack-build-scripts@0.8.0 * [Core] File input text styling for active selections (palantir#3375) * Fix root package.json file that had duplicated resolutions * Add yarn lock from upstream * Update graphext packages versions
Specifying the directory as part of the repository field in a package.json allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](npm/rfcs#19).
Specifying the directory as part of the repository field in a package.json allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](npm/rfcs#19).
* Updated the link to firebase hosting (facebook#5710) * Version bump postcss-preset-env to latest (facebook#5721) * Fix typo (facebook#5727) * Update stale.yml * Tweak bot settings * Merge webpack configuration (facebook#5722) * Rename production configuration * Upgrade lint staged * Merge mode, bail, devtool, and entry * Merge output settings * Remove old comment * Merge some trivial differences * Disable minimize in development mode * Only minify html and generate SW in production * Adjust comment * Toggle development plugins * Add missing imports * Scope settings * Delete development config * Use new config file * Remove unnecessary config import * Suggest Encore when not building a SPA with Symfony (facebook#5730) * Suggest Encore when not building a SPA with Symfony * Update README.md * Add PR welcoming badge (facebook#5759) * add pr badge 🎉 * add rounded badge 💥 * Update README.md * docs: Change Storybook install documentation (facebook#5779) * Don't polyfill fetch for Node -- additional files (facebook#5789) * docs: Simplify installing Storybook with npx (facebook#5788) Reduce two-step install to just one step (per the latest storybook docs) Change (i) `npm install -g @storybook/cli` and (ii) `sb init` to `npx -p @storybook/cli sb init` Refs: https://storybook.js.org/basics/quick-start-guide/ * Rename 'getting started' link to 'docs' (facebook#5806) * extra polyfills must be included manually (facebook#5814) * extra polyfills must be included manually, fixes facebook#5795 * make note italicized * React native repository updated in README.md (facebook#5849) Create React Native App (https://github.com/react-community/create-react-native-app ) has been archived by the owner. It is now read-only. * Make named-asset-import plugin work with export-as syntax (facebook#5573) * update named-asset-import babel plugin * add tests to named-asset-import plugin * add more plugin test * extract generateNewSource method, renaming variables * extract replaceNotVisitedSpecifiers for export and import visitors * remove visited list update from importDeclaration * renaming methods and removing return directly instead of saving * Add allowESModules option to babel-preset-react-app (facebook#5487) * Add allowESModules option to babel-preset-react-app * changes after feedback * Apply suggestions from code review Co-Authored-By: Pajn <rasmus@eneman.eu> * fix: add `sideEffects: false` to react-error-overlay (facebook#5451) This allows us to leave the import in the code, and webpack will still tree shake it out * Fix TypeScript decorator support (facebook#5783) * Fix TypeScript decorator support * Update babel flow override * WIP * Fix annotated var test * Upgrade babel deps * Fix propertyDecorator test * Always test with the latest stable Node version on Travis (facebook#5546) * fix: make typescriptformatter support 0.5 of fork checker (facebook#5879) * Fix link to page about running tests (facebook#5883) * Some Grammar fixes (facebook#5858) * Grammar fixes 1- For `Here's a `: The singular verb form ’s does not seem to agree with the plural subject a few common cases where you might want to try something else. Consider changing the verb form. 2- Added `A` before Reasonably : The noun phrase Reasonably good configuration seems to be missing a determiner before it. Consider adding an article. An article (a, an, or the) is a type of determiner. Possessive adjectives (my, his, our), possessive nouns (Joe’s, mother’s), and quantifiers (each, every) are also determiners. Single countable nouns usually require a determiner. * Update README.md * Run prettier on HTML files (facebook#5839) * Remove unnecessary whitespace in template HTML * Support setupTests.ts (facebook#5698) * Disable copy to clipboard in cra --info (facebook#5905) * Disable copy to clipboard in cra --info Fixes an issue where npx create-react-app --info throws an exception on Windows. The exception was caused by envinfo's copy to clipboard functionality; envinfo is distributed pre-bundled, but the dependency it uses for copying to the clipboard makes use of a binary on Windows that can't be found once the bundle is made. Disabling copy to clipboard fixes the issue. Closes facebook#5757. * Explicitly set clipboard to false * Add placeholders to template README for bit.ly links. (facebook#5808) * Add placeholders to template README for bit.ly links. * Add placeholders to template README for goo.gl links. * Update PWA link in README (facebook#5907) * Add note to docs about using Sass and Flow together (facebook#5823) * Add default values to `file_ext` note * Update note to include a link to the relevant docs * Update copy to indicate the default values * Add missing space * Correct some comments (facebook#5927) And remove some outdated info from 1.x * Add netlify.toml to prepare for deploy to netlify facebook#5807 (facebook#5930) * commit toml * full build path * wow the path is long * redirect * Add pre-eject message about new features in v2 (facebook#5954) * Add pre-eject message about new features in v2 * Make message bold * Suggest a different default for speed reasons (facebook#5959) Advanced users can opt into this behavior, but it's generally outside the users' control to fix and comes with performance concerns * Add SASS_PATH instructions to Sass docs (facebook#5917) `node-sass` supports the SASS_PATH variable that we can use. This PR adds that to the documentation. * Add removeItem to localStorage mock in docs (facebook#5919) * Improve error messaging in verifyPackageTree.js (facebook#5974) * Use https for linked images in docs to fix mixed content warnings (facebook#5985) * Update links to docs in all package README files (facebook#5912) * Update links to docs in all package README files * Fix formatting of issue template * Fix formatting of issue template * Added extension to .eslintrc (facebook#5988) * Update eslint instructions in docs (facebook#5990) * Add production build section to docs (facebook#5900) * Make links to docs consistent in README (facebook#6000) * Add docs for creating new TypeScript project (facebook#6015) * add webp support for typescript (facebook#5978) * add webp support for typescript * moved webp declaration below png * Fix Markdown comment in proxying docs (facebook#6009) * Tweak contributing doc * Prepare 2.1.2 release * Publish - babel-plugin-named-asset-import@0.3.0 - babel-preset-react-app@7.0.0 - create-react-app@2.1.2 - eslint-config-react-app@3.0.6 - react-app-polyfill@0.2.0 - react-dev-utils@7.0.0 - react-error-overlay@5.1.1 - react-scripts@2.1.2 * Add note to changelog * Fix control comment fo CSS Grid prefixing (facebook#6061) "on" value of "autoprefixer grid" is kinda deprecated. It's better to use "autoplace" or "no-autoplace" instead. https://github.com/postcss/autoprefixer#options "autoplace" enables PostCss' autoplace polyfill for ie and makes prefixes, "no-autoplace" only makes prefixes https://github.com/postcss/autoprefixer#does-autoprefixer-polyfill-grid-layout-for-ie * Update eslint instructions in docs (facebook#6084) Add a note that it will work in IDE with 2.0.3 and later * Generalize the Bootstrap documentation (facebook#5631) * Generalize the adding bootstrap documentation * Update adding-bootstrap.md * Update adding-bootstrap.md * Update adding-bootstrap.md * Update lock bot config * Typo fixes (facebook#6104) <!-- Thank you for sending the PR! If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots! Happy contributing! --> * Fix comment typo (facebook#6036) * Replace deprecated VSCode launch.json variable (facebook#6110) Replace deprecated ${workspaceRoot} variable with ${workspaceFolder} in VSCode launch.json. See https://code.visualstudio.com/docs/editor/variables-reference#_why-isnt-workspaceroot-documented * Update webpack-dev-server 3.1.9 -> 3.1.14 (facebook#6064) * Update webpack-dev-server 3.1.9 -> 3.1.14 * Update adding-typescript.md * Fix typo in CSS modules docs (facebook#6067) * Prepare 2.1.3 release * Publish - create-react-app@2.1.3 - react-dev-utils@7.0.1 - react-error-overlay@5.1.2 - react-scripts@2.1.3 * Update CHANGELOG.md * Fix CI and upgrade dependencies (facebook#6137) * Upgrade a bunch of dependencies * Turn off nightly Yarn * Bump eslint-plugin-react version and update webpack config (facebook#6132) * Bump eslint-plugin-react version * Move eslint-plugin-react settings into eslint-config-react-app * Add react/no-typos rule * Switch to eval-source-map (facebook#5060) Switches to eval-source-map, which is easier for webpack to recompute when a file changes and has column based mappings, which lets firefox devtools show original variable in the debugger and evaluate original expressions in the console. * Remove extra table cell (facebook#6141) * update link for difference between proposal stages (facebook#6149) seems the page which the old link points to has removed the related information. * Update react-dev-util globby dependency to v8.0.2 (facebook#6162) v8.0.2 was recently released https://github.com/sindresorhus/globby/releases to fix some pathing issues with dir-glob. * Add note for global install of CLI (facebook#6157) * Add note for global install of CLI Closes facebook#6140. * Add react/react-dom dependencies to relative-paths test fixture (facebook#6165) * Update local-test.sh to return test exit code (facebook#6179) The `e2e:docker` command can run tests in a Docker container, but it always returns exit code 0 even if the tests failed. This PR resolves that and returns the exit code from the test command. * Upgrade @svgr/webpack to 4.1.0 (facebook#5816) * Upgrade svgr to 4.0.3 * Upgrade svgr to 4.0.4 * Remove unnecessary prettier option * Update to 4.1.0 * Move chalk dependency to react-dev-utils (facebook#6150) Related to facebook#751 * Ignore node_modules in verifyNoTypeScript (facebook#6022) * Add empty mock for module (facebook#5798) * Changes to steps for publishing GitHub User Page (facebook#6095) * Changes to steps for publishing GitHub User Page Remove the the step for switching to gh-pages branch as it is no longer a viable option. * Changed projects to project * Update updating-to-new-releases.md with note about global installs (facebook#6190) * Update updating-to-new-releases.md Related to facebook#6140 * Update updating-to-new-releases.md Linking to getting started following discussion on facebook#6190. Adapt terminology to current installation methods. * Update updating-to-new-releases.md typo, rleative link * Update docusaurus/docs/updating-to-new-releases.md Co-Authored-By: carpben <carpben@users.noreply.github.com> * Update `serve` change listening port documentation (facebook#6229) * [docs] Change serve port flag and add example * [docs] Add --listen flag * Fix e2e:docker test failure (facebook#6050) * fix e2e:docker issue * fix e2e tests * Update stale config to ignore additional labels * Prevent cursor events on app-logo svg (facebook#6276) * Add '--no-watch' flag for tests (facebook#6285) * Check for multiple project names when initializing (facebook#6080) * Add `--no-watch` test flag to docs (facebook#6331) * Add empty mock for dns (facebook#6292) * Fix order of args in tasks/cra test (facebook#6342) * Fix missing article in README (facebook#6346) * Make manifest.json description more generic (facebook#6355) * Speed up TypeScript projects (facebook#5903) As a lot of [people](https://hackernoon.com/why-i-no-longer-use-typescript-with-react-and-why-you-shouldnt-either-e744d27452b4) is complaining about TypeScript performance in CRA, I decided to enable `async` mode in TypeScript checker. These changes basically brings the JS compilation times to TS projects. So, recompilation took less than 1 second instead of 3 seconds in medium size project. The problem with async mode is that type-errors are reported after Webpack ends up recompilation as TypeScript could be slower than Babel. PR allows to emit files compiled by Babel immediately and then wait for TS and show type errors in terminal later. Also, if there was no compilation errors and any type error occurs, we trigger a hot-reload with new errors to show error overlay in browser. Also, I wanted to start a discussion about `skipLibCheck: false` option in default `tsconfig.json`. This makes recompilations really slow and we should consider to set it to `true` or at least give users a big warning to let them know that it could be really slow. The following video is showing the updated workflow with a forced 2.5 second delay for type-check to give you an idea how it works. ![nov-26-2018 15-47-01](https://user-images.githubusercontent.com/5549148/49021284-9446fe80-f192-11e8-952b-8f83d77d5fbc.gif) I'm pretty sure that PR needs some polishing and improvements but it should works as it is. Especially a "hack" with reloading the browser after type-check looks ugly to me. cc @brunolemos as he is an initiator of an original TypeScript PR. Should fix facebook#5820 * Update ZEIT Now deployment instructions (facebook#6359) * Sass source map for dev (facebook#5713) Sass source map for dev * Upgrade Docusaurus and enable new features * Use semicolons in the ProcessEnv interface (facebook#6364) * Update babel-plugin-macros 2.4.4 -> 2.4.5 (facebook#6307) As part of the latest babel-plugin-macros [2.4.5 release](https://github.com/kentcdodds/babel-plugin-macros/releases/tag/v2.4.5), there was a small fix that went in that fixes a [bug](kentcdodds/babel-plugin-macros#100) specifying the `babelMacros` entry in `package.json` no longer working. This patch version increase should remedy the issue and allow specifying babel macro configuration in the `package.json` file again (as stated in the [user docs](https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md#config-experimental) of babel-plugin-macros) * [docs] Warn/clarify that env vars are NOT "SECRET" (facebook#6062) * [docs] Warn about storing secrets in env vars Fixes facebook#5676 Co-Authored-By: Ian Schmitz <ianschmitz@gmail.com> * [docs] Add NOT to REACT_APP_SECRET_CODE Fixes facebook#5676 * [docs] Remove line breaks * Add Jest typeahead plugin (facebook#5213) * Add Jest typeahead plugin * Update jest-watch-typeahead to 0.2.1 * Update docs links to prefer HTTPS for supported domains (facebook#6383) * Update docs links to prefer HTTPS for supported domains * Fix existing typos * Revert "Check for multiple project names when initializing (facebook#6080)" This reverts commit a78be99. * Upgrade dependencies (facebook#6393) * Prepare 2.1.4 release * Publish - babel-plugin-named-asset-import@0.3.1 - babel-preset-react-app@7.0.1 - create-react-app@2.1.4 - eslint-config-react-app@3.0.7 - react-app-polyfill@0.2.1 - react-dev-utils@7.0.2 - react-error-overlay@5.1.3 - react-scripts@2.1.4 * Move fork-ts-checker-webpack-plugin dependency to react-dev-utils (facebook#6395) * Revert "Move fork-ts-checker-webpack-plugin dependency to react-dev-utils (facebook#6395)" This reverts commit c2b7158. * Revert "Speed up TypeScript projects (facebook#5903)" This reverts commit 5ce09db. * Prepare 2.1.5 release * Publish - create-react-app@2.1.5 - react-dev-utils@7.0.3 - react-scripts@2.1.5 * Add information for usage custom registries on e2e testing facebook#4488 (facebook#5767) * Update stale.yml * Add forward ref to SVG Component (facebook#5457) * Add forward ref to SVG component * Write proper component for the ref test * Add ref to jest svg transform and fix tests * Fix SVG file location * Use proper `ref` instead of svgRef in tests * Add ref to svgr loader * Update the docs to match facebook#5846 * Exclude `.d.ts` files from TypeScript glob * Revert "Switch to eval-source-map (facebook#5060)" (facebook#6444) This reverts commit 773d103. * Only use `yarn.lock.cached` if using the default Yarn registry (facebook#6253) * Fix typo in doc (facebook#6454) "Collocation" insead of "Colocation". * Speed up TypeScript v2 (facebook#6406) * Revert "Revert "Speed up TypeScript projects (facebook#5903)"" This reverts commit 544a594. * Move fork-ts-checker dep to react-dev-utils * Convert WebpackDevServerUtils.createCompiler to take in options arg * Update README.md for react-dev-utils * Add CODEOWNERS * Convert all bit.ly links from http to https (facebook#6239) * revert sass sourcemaps in development * revert css sourcemaps in development (facebook#6472) This fixes facebook#6399. * Remove latest Node version from Travis config (facebook#6474) * Use contenthash instead of chunkhash for better long-term caching (facebook#6387) * remove webpack-bundle-analyzer * remove webpack-bundle-analyzer * Fix a typo * Analyse also dependencies bundle (facebook#6438) The current `analyze` script only analises the `/src` code. This change leverages new version of `source-map-explorer` that is able to analyse multiple bundles at once, including the 3rd party dependencies bundle which is in my opinion even more important to analyze. * minor typo fix in openBrowser * remove stats json * remove argv * Improved language used in markdown code blocks. (facebook#6419) * Improved language used in code blocks. * removed redundant statements (facebook#6254) The enabled by default statement made sense when the developer was supposed to disable flow in order to use ts. Both those statements in there create some confusion about it in my opinion. * Remove AppVeyor config files (facebook#6493) * Fix build deployment instruction link appends comma at end (facebook#6511) * Prepare 2.1.6 release * Publish - babel-preset-react-app@7.0.2 - confusing-browser-globals@1.0.6 - create-react-app@2.1.6 - eslint-config-react-app@3.0.8 - react-app-polyfill@0.2.2 - react-dev-utils@7.0.4 - react-error-overlay@5.1.4 - react-scripts@2.1.6 * Revert "Speed up TypeScript v2 (facebook#6406)" (facebook#6585) This reverts commit 6a5b3cd. * Prepare 2.1.7 release * Publish - create-react-app@2.1.7 - react-dev-utils@7.0.5 - react-scripts@2.1.7 * Reapply "Speed up TypeScript v2 (facebook#6406)" (facebook#6586) This reverts commit b2cf28b and reapplies facebook#6406. * Prepare 2.1.8 release * Publish - create-react-app@2.1.8 - react-dev-utils@8.0.0 - react-scripts@2.1.8 * [docs] revert removal of newlines from html (facebook#6386) An unintended change was merged in facebook#6062 * Update webpack-dev-server to 3.2.1 (facebook#6483) * Upgrade webpack-dev-server to 3.2.1 * Enable click to go to error in console for TypeScript (facebook#6502) * reattempt changes * formatter fixes * fix missing colon in path * revert path tweaking amends as per discussion with @ianschmitz * Update html-webpack-plugin (facebook#6361) * Convert JSON.stringify \n to os.EOL when writing tsconfig.json (facebook#6610) * Change class components to functional components in templates (facebook#6451) * change class component to function component * Update packages/react-scripts/template/src/App.js Co-Authored-By: xiaoxiangmoe <xiaoxiangmoe@gmail.com> * Update packages/react-scripts/template-typescript/src/App.tsx Co-Authored-By: xiaoxiangmoe <xiaoxiangmoe@gmail.com> * Type check JSON files (facebook#6615) * Make compiler variable const instead of let (facebook#6621) compiler is not being reassigned, so we can use a const here * Upgrade dependencies (facebook#6614) * Upgrade dependencies * Upgrade a couple missed deps * Run Prettier over codebase * Stage files for commit after ejecting (facebook#5960) * add command to add files to staging after eject * update console.log message * wrap git add in a try/catch block * return true & update log message * add test to check if files were staged * Fix check for staged files * change named import into default import (facebook#6625) * Add note about npx caching (facebook#6374) * Add note about npx caching and link to facebook#6119 It is necessary to uninstall any version that was previously installed for the typescript flag to work when using npx. * Use proper casing for TypeScript Co-Authored-By: TaylorBriggs <TaylorBriggs@users.noreply.github.com> * Add empty mock for http2 (facebook#5686) * Support browserslist in @babel/preset-env (facebook#6608) * Add browserslist support to @babel/preset-env * Support @babel/polyfill in entry point * Support React Hooks (facebook#5602) (facebook#5997) * Add Babel plug-in for Hooks; Add ESLint plug-in for Hooks (WIP) * Fix transform destructuring loose config * Add eslint-plugin-react-hooks to package.json * Fix package.json's * Fix eslint-plugin-react-hooks version * Fix package.json * Fix package.json * Add eslint-plugin-react-hooks to script package.json * Force array destructuring to work in loose mode only for known Hooks * Update based on feedback from PR * Add 'exhaustive-deps' lint rule * Bump eslint-plugin-react-hooks to stable version * Remove extraneous dependency from react-scripts * Add TypeScript linting support (facebook#6513) * Initial pass adding typescript-eslint * Add warning to shared rule set * Add documentation for setting up VSCode extension * Provide tsconfig path to typescript-eslitn * Update to Jest 24 (facebook#6278) * Update to jest 24 * Add notice about pnpResolver.js * Formatting * Fix linting * Update to jest 24.1.0 * Update jest-pnp-resolver * Swap create-react-app params in e2e scripts * Add extraGlobals to supportedKeys * Bump jest to 24.3.1 * Bump jest to 24.4.0 * Bumb jest to 24.5.0 * Update template dependencies jest to 24.5.0 * Debug failing test * Remove jest-pnp-resolver * Remove console.log * Revert yarn.lock.cached * Prepare 3.0.0 alpha release * Unpin eslint-config-react-hooks dependency (facebook#6653) * Add wait: false when opening app in browser (facebook#5821) * Bump babel-eslint peerDependency in eslint-config-react-app (facebook#6662) Sync the `babel-eslint` version between react-scripts and eslint-config-react-app * Remove unused eslint comment (facebook#6674) * Remove shrink-to-fit=no from templates (facebook#6669) * Change app component declaration from arrow function to regular function (facebook#6655) * Change app component declaration from arrow function to regular function * Change TypeScript template back to an arrow function * Remove duplicate url key in Docusaurus siteConfig (facebook#6690) `url` was duplicated in `siteConfig.js`, both were the same value, so stripping one of them. * Add deployment instructions with AWS Amplify (facebook#6208) * Add AWS Amplify deployments to the CRA Docs * Fixed typos * added gif * GIF link * Update docusaurus/docs/deployment.md * create-react-app to Create React App * Update docusaurus/docs/deployment.md * Removed extra verbiage. * Removed GIF * Add clarifying documentation for how to add a sass stylesheet on Windows (facebook#6322) * Kill verdaccio in CI tasks cleanup (facebook#6700) Fixes facebook#6663 * Docs: Add clarifying note about naming variables (facebook#6491) * Remove project property from @typescript-eslint/parser options (facebook#6701) * Remove project property from @typescript-eslint/parser options The "project" property has a significant performance impact on linting, and none our rules currently need it. Fixes facebook#6661. * Remove --coverage + --watch workaround (facebook#4176) * Document .graphql and .gql file loading with graphql.macro (facebook#5481) * Add explanation for adding everything as dependencies to docs (facebook#6082) * Update available-scripts.md add the reason for adding packages as dependencies * Update available-scripts.md * Update available-scripts.md * Update available-scripts.md Co-authored-by: Amy Lam <amy.r.lam@gmail.com> Co-authored-by: Ian Sutherland <ian@iansutherland.ca> * Cleanup Jest config (facebook#6654) General cleanup after the [Jest 24 PR](facebook#6278). This also includes `jsdom@14` via https://www.npmjs.com/package/jest-environment-jsdom-fourteen. Since we have a node >= 8.10 requirement, we are able to use the latest version of `jsdom` which includes additional implementations of browser APIs such as `MutationObserver` (which we had an issue filed for over at facebook#6617). /cc @SimenB. Is there more you recommend we do to cleanup our [Jest config](https://github.com/facebook/create-react-app/blob/b0cbf2caa18ee8267855b14578ebc3dee826f552/packages/react-scripts/scripts/utils/createJestConfig.js) for TypeScript? Co-authored-by: Ian Sutherland <ian@iansutherland.ca> * Add temporary workaround for Babel dependency issues in installs test suite (facebook#6757) This is a temporary fix to get our test suites passing so we can finish work on the 3.0 release. We still need to find and fix the root cause of this issue: facebook#6679. This workaround should be removed once that's fixed. * Enable futureEmitAssets in webpack config (facebook#6696) * Only suggest that tsconfig.json is incorrect when SyntaxError is caught (facebook#6160) Co-authored-by: Ian Sutherland <ian@iansutherland.ca> * Fix unlogged yarn pnp message (facebook#6759) * fix: terser-webpack-plugin hanging on WSL (facebook#6732) * fix: terser-webpack-plugin hanging on WSL * nits * Merge branch 'master' into terser-parallel-bug-wsl Co-authored-by: Jack Zhao <jzhao@fb.com> * Replace deprecated SFC with FunctionComponent (facebook#6746) * Add temporary workaround for Babel dependency issues in kitchensink-eject test suite (facebook#6762) * Update to workbox-webpack-plugin v4 (facebook#6725) * Update to workbox-webpack-plugin v4 * Update workbox-webpack-plugin to 4.2.0 Co-authored-by: Ian Sutherland <ian@iansutherland.ca> * Adds PostCSS Normalize (facebook#5810) * Add postcss-normalize plugin * Configure PostCSS Normalize * Add documentation * Include the doc in sidebar * Fix the id in sidebar.json * Update adding-css-reset.md Co-authored-by: Jack Zhao <jzhao@fb.com> Co-authored-by: Ian Sutherland <ian@iansutherland.ca> * Update fork-ts-checker-webpack-plugin out of alpha (facebook#6739) <!-- Thank you for sending the PR! If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots! Happy contributing! --> * Update dependency versions (facebook#6767) Includes only minor/patch version bumps. * Update to core-js@3 * Revert "Update to core-js@3" This reverts commit 7114965. * Change NODE_ENV and PUBLIC_URL to readonly (facebook#6750) * Add Render deployment section (facebook#6695) * Update link to React Testing Library docs (facebook#6772) * Warn when using react-scripts-ts (facebook#6770) * Warn when using react-scripts-ts * Update node/npm min version references * Fix code comment typo (facebook#6775) * Remove unused babel-loader from babel-preset-react-app (facebook#6780) * Add SVG support dependency note (facebook#6783) * Clarify production build output files documentation (facebook#6786) * Add link to TypeScript page in Getting Started (facebook#6817) This also updates our min version of Node that we ask for * Fix minimum React version for SVG component support (facebook#6820) * Copy fix (facebook#6801) * Update to core-js@3 (facebook#6769) * Update to core-js@3 * Remove references to @babel/polyfill * InlineChunkHtmlPlugin works with empty publicPath (facebook#6735) * InlineChunkHtmlPlugin works with empty publicPath * Update as requested * Fix react-scripts peer dependencies link local issue (facebook#6579) (facebook#6580) * Move list of files under `files` key in asset manifest (facebook#6821) * Update testMatch to also be compatible with Jest 24 (facebook#6313) * Add directory details to packages/* package.json (facebook#6826) Specifying the directory as part of the repository field in a package.json allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](npm/rfcs#19). * Set baseUrl from jsconfig.json/tsconfig.json (facebook#6656) * Set baseUrl from jsconfig.json/tsconfig.json * Resolve the path for loading modules * Add tests for jsconfig.json * Add jsconfig.json * Update packages/react-scripts/scripts/start.js * Move baseUrl test to config folder * Remove alias test * Use chalk from react-dev-utils * Add lost absolute file for typescript baseUrl test * Update packages/react-scripts/config/modules.js * Update other references of useTypeScript to hasTsConfig * Fix casing of TypeScript * Keep respecting NODE_PATH for now to support multiple module paths. * Add test for NODE_PATH * Add fallback if NODE_PATH is not set. * Fix node path behavior tests * Remove debugging code from behavior test suite * Remove more debugging code * Show NODE_PATH deprecation warning during build Co-authored-by: Ian Sutherland <ian@iansutherland.ca> Co-authored-by: Brody McKee <mrmckeb@users.noreply.github.com> Co-authored-by: Jack Zhao <jzhao@fb.com> * Prepare 3.0.0 alpha release * Upgrade to Lerna v3 (facebook#6829) * Upgrade Lerna to 3.13.2 * Remove independent argument to Lerna * Update publish command * Prepare 3.0.0 alpha release * Relax ESLint version range (facebook#6840) * Relax eslint version range * Use semver package to compare versions during preflight check * Cleanup package.json files whitespace * Change Create React App version in `react-scripts` eject warning (facebook#6845) * fix: change CRA version in eject warning * Update eject.js * Remove no-watch flag in favor of watchAll=false (facebook#6848) * Add baseUrl documentation (facebook#6847) * Add baseUrl documentation * Update docusaurus/docs/importing-a-component.md Co-Authored-By: ianschmitz <ianschmitz@gmail.com> * Update docusaurus/docs/importing-a-component.md Co-Authored-By: ianschmitz <ianschmitz@gmail.com> * Simplify include to match default tsconfig.json * Update fsevents dependency version (facebook#6843) Fixes facebook#6852. I update the dependency version of fsevents because old versions was vulnerable (CWE-59). Vulnerability found with snyk.io report * Update stale.yml * Prepare 3.0.0 release * Publish - babel-plugin-named-asset-import@0.3.2 - babel-preset-react-app@8.0.0 - confusing-browser-globals@1.0.7 - create-react-app@3.0.0 - eslint-config-react-app@4.0.0 - react-app-polyfill@1.0.0 - react-dev-utils@9.0.0 - react-error-overlay@5.1.5 - react-scripts@3.0.0 * Fix typo in README.md (facebook#6879) * Fix no-useless-constructor rule in TypeScript (facebook#6862) * Remove body padding reset from templates (facebook#6300) * remove padding 0 on body from default styles * Update index.css * Fix typo in deployment docs (facebook#6881) Typo : preache => precache * Improve styling of "get started" button (facebook#6810) * Generate SVG component name in Jest fileTransform (facebook#6706) * Grammar! (facebook#6935) Fix copy * Change cssmodule classname hash to use repo relative paths (facebook#6876) * Change cssmodule classname hash to use repo relative paths instead of system absolute paths * Update dependencies babel preset with recent changes (facebook#6887) * Update dependencies preset to support browserslist * Loose mode array destructuring for hooks in dependencies * Remove `Object.assign` from `MiniCssExtractPlugin` options (facebook#6854) * Update GraphQL doc (facebook#6898) * Need to install graphql package * Need to provide real graphql in the .graphql file, not gql wrapped graphql * Add clarifying note to TypeScript docs warning about global install of CRA (facebook#6945) Added block quote with warning about issues when CRA is installed globally. * Adds the configuration for PnP/Typescript (facebook#6856) * Adds the configuration for PnP/Typescript * Adds the header * Bumps ts-pnp * Bumps fork-ts-checker-webpack-plugin * Disable default-case lint rule for TypeScript (facebook#6937) * Add note to restart the dev server after changing .env file (facebook#6979) * Add note to restart the dev server after change .env file * Update copy Co-authored-by: Ian Sutherland <ian@iansutherland.ca> * Temporary fix for babel-jest preflight error (facebook#7002) * Temporary fix for babel-jest preflight error * Update babel-jest in react-error-overlay * Disable no-dupe-class-members for TypeScript (facebook#6987) * Unpin babel-jest (facebook#7007) * Revert PR facebook#6935 because CLA was not signed (facebook#7016) This reverts commit e5f69b5. * Prepare 3.0.1 release * Publish - babel-preset-react-app@9.0.0 - create-react-app@3.0.1 - eslint-config-react-app@4.0.1 - react-app-polyfill@1.0.1 - react-dev-utils@9.0.1 - react-error-overlay@5.1.6 - react-scripts@3.0.1 * update version * update package name * repair oem problem * remove unuse webpack config
Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19.
* [OverflowList] Always re-render items (palantir#3278) * Allow overriding of heading typography in Sass (palantir#3283) * [TimezonePicker] Support a custom target via <children> (palantir#3287) * Export getTimezoneMetadata(), add default value for date parameter * Support one custom child in <TimezonePicker> * Update example * Update tests * (nit) Rename to CustomTimezonePickerTarget * Add more docs about possibly ignored props * Update docs * Respond to @giladgray CR * Create CHANGELOG.md * Suggest query remains when closed if nothing is selected. (palantir#3289) * Allow shortcuts to change time in Date Range Picker (palantir#3223) * Allow date range shortcuts to change time * Address PR comments * lint * [Suggest] add `disabled` and `resetOnClose` props (palantir#3292) * add Suggest resetOnClose prop a la Select * add Suggest disabled prop * add resetOnClose switch to example * docs note * [QueryList] Initialize activeItem state correctly based on prop. (palantir#3290) * Initialize QueryList's activeItem state correctly based on prop. * Fix comment typo * Code cleanup * [PanelStack] Allow any prop type for initial panels (palantir#3295) * [Tooltip] allow HOVER interactions (palantir#3291) * [Tag] fill & [TagInput] intent props (palantir#3237) * add Tag fill prop * add TagInput intent prop * add tag fill styles & example switch * docs: Fix link to Popover (palantir#3300) * Add directory details to packages/*/package.json (palantir#3301) Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](npm/rfcs#19). * Add directory to repository details in package.json files (palantir#3299) Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19. * [select] Add optional "itemsEqual" comparator prop to QueryList and related components (palantir#3285) * Improve QueryList and related components to support optional equality test implementation for non-primitive item types. * Revert change to use undefined for representing no selection * Finish revert change to use undefined for representing no selection * Remove TODO * Remove unnecessary param documentation * Rename "areValuesEqual" prop to "itemsEqual" * Improve "itemsEqual" prop to also support a property name. * Documentation typos * Documentation improvements * Update copyright year in new file * Rename new unit test file * [DRP] Shortcuts support changing time & docs (palantir#3293) * shortcut shouldChangeTime => includeTime * revert unnecessary test changes * add Shortcuts docs to DRP * Publish - @blueprintjs/core@3.12.0 - @blueprintjs/datetime@3.7.0 - @blueprintjs/docs-theme@3.0.4 - @blueprintjs/icons@3.5.1 - @blueprintjs/karma-build-scripts@0.9.1 - @blueprintjs/labs@0.16.3 - @blueprintjs/node-build-scripts@0.8.1 - @blueprintjs/select@3.6.0 - @blueprintjs/table@3.4.1 - @blueprintjs/test-commons@0.8.1 - @blueprintjs/timezone@3.3.0 - @blueprintjs/tslint-config@1.7.1 - @blueprintjs/webpack-build-scripts@0.7.1 * [select] consistency refactors (palantir#3305) * code consistency across `select` components: - public state = ... (not inconstructor) - non-optional refs - safeInvokeMember to reduce destructuring * fix tests, explicit null check * dedupe shortcuts prop types (palantir#3311) * [NumericInput] allows min === max (palantir#3296) * NumericInput allows min === max * add test * [NumericInput] new rightElement prop (palantir#3314) * Update select-component.md (palantir#3319) * Fixing typo (palantir#3318) Missing "and" * Added new inbox icons (palantir#3335) * [docs] click to download sketch files from Resources page (palantir#3334) * click to download sketch files from Resources page * lint * use /raw/ url to download actual file * rename resource files so they download correctly * add "Missing fonts?" callout * minor style polish * Add internal text to switch component (palantir#3327) * switch text v0 * font size a bit smaller * add an example of internal text property * test * cleanup * lint fixes * review comments * remove whitespace in tests * more review comments * even more review changes * remove errant property * restore comment * update prop docs * additional tests * remove unnecessary checks * [Spinner] SIZE_SMALL = 20 (palantir#3342) * Spinner.SIZE_SMALL = 20 * fix isotest * [NumericInput] countDecimalPlaces for number type (palantir#3337) Fixes palantir#3336 * New Drawer component (palantir#2957) * add files * fixed styling * dark theme added * Added vertical orientation * changed viewport units * Added small and large sizes * Standardized sizing * backdrop fixed * add tests * small/large => one size prop * update size constants * add hasBackdrop switch to example * use Drawer for API browser * size prop docs * fix isotest * add size+vertical tests, actually run suite * [DatePicker] fix onChange on month change after initial day selection (palantir#3343) * fix onChange doesn't fire on month change after initial day selection Fixes palantir#3340 * change !== to != operator * add test onChange fired when month is changed for uncontrolled datepicker * Publish - @blueprintjs/core@3.13.0 - @blueprintjs/datetime@3.7.1 - @blueprintjs/icons@3.6.0 - @blueprintjs/select@3.6.1 * Corrected the type of Popover's onInteraction prop (palantir#3348) * ButtonGroup supports "fill" prop when Buttons are wrapped in Popovers (palantir#3347) * 🔧 upgrade tslint (palantir#3315) * Fix shortcuts.tsx react import typings (palantir#3356) * [Tabs] add panelClassName prop (palantir#3351) * Fix lint (palantir#3374) * [Core] Fixed not applying intent color for icon inside tree node (palantir#3355) * [Core] Add option to make tree node disabled (palantir#3354) * Drawer default prop warning fix (palantir#3382) * [Select] Create-able Select components (palantir#3381) * Upgrade dev dependencies and types (palantir#3370) * Publish - @blueprintjs/core@3.14.0 - @blueprintjs/docs-app@3.14.0 - @blueprintjs/select@3.7.0 * [Core] Overlay: fix transitionDuration documentation (palantir#3391) * [Core] Fix react types regression (palantir#3390) * Publish - @blueprintjs/core@3.14.1 - @blueprintjs/docs-app@3.14.1 * Publish - @blueprintjs/datetime@3.7.2 * [Core] Checkbox: fix indeterminate state update (palantir#3409) Fixes palantir#3408 * Minor README updates * [Core] Docs: fix small typo (palantir#3411) "accomodate" to "accommodate" * [Docs] Overlay Example: add option to test scrolling behavior (palantir#3406) * Update Bug_report.md * [datetime] docs: fix react-day-picker API hyperlink (palantir#3435) * [core] TagInput: use undefined instead of null to hide clearButton (palantir#3436) * [Select] hide QueryList item list when menuContent and createItemView are both null (palantir#3426) * [MultiSelect] Enable pasting of multiple values (same as TagInput) (palantir#3428) * [Core] Add z-index to panel stack header (palantir#3414) * [Core] Add option to grow text area with input (palantir#3398) * [Core] TextArea: fix style object regression (palantir#3440) * [Core] Add position prop to Drawer component, deprecate vertical prop (palantir#3386) * [Table] Fix resizable props documentation (palantir#3400) * Switch to standard Apache-2.0 license (palantir#3457) * [table] Fix documentation to use the right css file name (palantir#3452) * Prepare release v3.15.0 (palantir#3458) * Publish - @blueprintjs/core@3.15.0 - @blueprintjs/datetime@3.8.0 - @blueprintjs/docs-app@3.15.0 - @blueprintjs/docs-theme@3.1.0 - @blueprintjs/icons@3.7.0 - @blueprintjs/karma-build-scripts@0.10.0 - @blueprintjs/node-build-scripts@0.9.0 - @blueprintjs/select@3.8.0 - @blueprintjs/table@3.5.0 - @blueprintjs/test-commons@0.9.0 - @blueprintjs/timezone@3.4.0 - @blueprintjs/tslint-config@1.8.0 - @blueprintjs/webpack-build-scripts@0.8.0 * [Core] File input text styling for active selections (palantir#3375) * [Icons] Added new inheritance icon (palantir#3451) * Added new inheritance icon * Updated content per CR * Update font files * Fix typo in bug report template * [datetime] Fix DateInput IE11 bug when changing month/day (palantir#3471) * Upgrade react-day-picker, fix caption months support, regen lockfile (palantir#3461) * Publish - @blueprintjs/core@3.15.1 - @blueprintjs/datetime@3.9.0 - @blueprintjs/docs-app@3.15.1 - @blueprintjs/icons@3.8.0 * [core] Fix NumericInput documentation of initial state value (palantir#3484) * Upgrade documentalist, refactor CI config (palantir#3482) * Publish - @blueprintjs/docs-app@3.15.2 - @blueprintjs/docs-theme@3.2.0 * [docs] Fix accidental markdown strikethrough (palantir#3493) - Incorrectly showed up as strikethrough text on https://blueprintjs.com/docs/#core/components/popover * [datetime] [bugfix] Hover over date no longer clears time input (palantir#3502) * [datetime] [bugfix] render the correct month when DRP singleMonthOnly is enabled (palantir#3504) * [Icons] Added new UI icons (palantir#3510) * [Select] Change activeItem when items change (palantir#3496) * [datetime] Fix DRP inconsistency with single day ranges and time precision enabled (palantir#3557) * Prepare datetime, icons, select release (palantir#3565) * Publish - @blueprintjs/datetime@3.9.1 - @blueprintjs/icons@3.9.0 - @blueprintjs/select@3.8.1 * [docs-app] fix scrolling of interface definition drawer (palantir#3576) * [core] Improve dark muted and disabled text contrast (palantir#3584) * Fix docs rendering of mixed HTML / markdown content (palantir#3585) * [dependencies] Bump js-yaml, cssnano, svgo * [core] Fix number of clicks required to use HTMLSelect inside ControlGroup in Firefox (palantir#3568) * [table] add editableTextProps to allow adjusting cells during editing (palantir#3350) * [core] fix TagInput tags overflowing their container (palantir#3591) * [core] Fix intent color for Icons inside Tree component in dark mode (palantir#3598) * [core] Allow hiding panel stack header (palantir#3600) * Update abstract button props to match react's. (palantir#3608) React recently updated the typings for HTML button from 'string' to a more limited union. See: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L1848 for the current types. * [core] docs: use Pre component in Collapse example (palantir#3610) * [core] Add controlled mode to PanelStack (palantir#3601) * [datetime] feat(DateRangeInput): add support for disabling start or end input (palantir#3607) * [table] feat(RowHeaderCell): Add support for nameRenderer (palantir#3447) * Publish - @blueprintjs/core@3.16.0 - @blueprintjs/datetime@3.10.0 - @blueprintjs/docs-app@3.16.0 - @blueprintjs/table@3.6.0 * Upgrade testing infrastructure (palantir#3615) * Publish - @blueprintjs/core@3.16.1 - @blueprintjs/karma-build-scripts@0.11.0 - @blueprintjs/node-build-scripts@0.10.0 * Fix up inter-package dependencies * Publish - @blueprintjs/core@3.16.2 * [tslint-config] Fix suggestion for <table> element replacement (palantir#3624) * [datetime] Fix typing values into TimePicker's fields (palantir#3613) * [docs-app] Fix minor bug in upload toast example (palantir#3626) * [core] docs: add caveat about tooltip target element (palantir#3620) * [select] bugfix(Select): fix keyboard navigation when all items disabled (palantir#3627) * [select] fix: do not call itemRenderer when Select is disabled (palantir#3629) * [core] fix(Toast): long words in toast messages no longer break container layout (palantir#3634) * Various documentation fixes (palantir#3635) * [core] fix(Switch): tweak dark theme hover/active colors (palantir#3637) Fixes palantir#3599 * Split karma testing into more CI containers (palantir#3638) * [core, select] feat: add fill prop to Popover, InputGroup, Suggest, MultiSelect (palantir#3636) * Publish - @blueprintjs/core@3.17.0 - @blueprintjs/datetime@3.10.1 - @blueprintjs/docs-app@3.17.0 - @blueprintjs/select@3.9.0 - @blueprintjs/tslint-config@1.8.1 * [ci] fix: persist lib files when building dist * Publish - @blueprintjs/core@3.17.1 * [datetime] feat(DatePicker): add option to highlight current day (palantir#3628) * Publish - @blueprintjs/datetime@3.11.0 - @blueprintjs/icons@3.9.1 * [core] feat(FileInput): add buttonText prop (palantir#3560) * [core] fix(HotkeysTarget): invoke user-defined key event handlers correctly (palantir#3645) * [core] fix(TextArea): grow box vertically to show initial content (palantir#3647) * [table] fix EditableCell update cycle, improve EditableName docs (palantir#3649) * [datetime] fix(DateRangeInput): maintain focus on time inputs during key interactions (palantir#3644) * fix: restrict tslib dependency to minor version range * chore: upgrade non-react typings * [docs-app] feat(DateRangeInputExample): time picker toggle * chore: upgrade to typescript 3.2 (palantir#3653) * chore: upgrade to typescript 3.5.3 (palantir#3654) * chore: upgrade documentalist (palantir#3656) * [datetime] fix(DRI): do not close on selection when time inputs receive key presses (palantir#3658) * [core] fix(EditableText): support selectAllOnFocus with type=number in latest React (palantir#3672) * fix: correctly declare react peer deps in package.json (palantir#3676) * [core] fix(Popover): only apply active class to target in uncontrolled mode (palantir#3677) * [docs-app] create "Design Principles" section, mention CSS API contract (palantir#3678) * chore: upgrade dependencies, delete labs package (palantir#3679) * Publish - @blueprintjs/core@3.18.0 - @blueprintjs/datetime@3.12.0 - @blueprintjs/docs-app@3.18.0 - @blueprintjs/docs-data@3.16.0 - @blueprintjs/docs-theme@3.3.0 - @blueprintjs/icons@3.10.0 - @blueprintjs/karma-build-scripts@0.12.0 - @blueprintjs/landing-app@3.16.0 - @blueprintjs/node-build-scripts@0.11.0 - @blueprintjs/select@3.10.0 - @blueprintjs/table-dev-app@3.1.0 - @blueprintjs/table@3.7.0 - @blueprintjs/test-commons@0.10.0 - test-react15@1.1.1 - @blueprintjs/timezone@3.5.0 - @blueprintjs/tslint-config@1.9.0 - @blueprintjs/webpack-build-scripts@0.9.0 * chore: minor adjustment to vscode settings * [core] fix(Drawer): use Sass variable $drawer-padding (palantir#3689) Correcting use of $dialog-padding to $drawer-padding * [core] feat: support create-react-app environment variable (palantir#3691) Allows create-react-app users to set a custom blueprint namespace more easily. * [table] fix(EditableCell): support tabIndex prop correctly (palantir#3687) * [core] docs(Popover) fix import statements (palantir#3708) * chore: Update Lerna URL in Readme (palantir#3715) * [core] fix(Popover): click on target no longer affects hover behavior (palantir#3716) * [core] fix(AnchorButton): left text alignment (palantir#3713) * [datetime] feat(DateRangePicker): add active menu styles to shortcuts (palantir#3688) * [datetime] fix: upgrade react-day-picker, clean up type imports (palantir#3725) * [core] docs: add missing closing angle bracket (palantir#3714) * chore: update code sandbox to latest package versions * [core] fix(MenuItem): avoid React warning for unknown attr labelClassName (palantir#3730) * Publish - @blueprintjs/core@3.18.1 - @blueprintjs/datetime@3.13.0 - @blueprintjs/docs-app@3.18.1 - @blueprintjs/table@3.7.1 * [core] docs(Toaster): fix position prop comment (palantir#3657) * [icons] feat: add learning, new layer(s), stopwatch icons (palantir#3745) * [core] fix(MultiSlider): fix rendering bug with track fill (palantir#3733) * Refactor to use React 16.3+ lifecycle methods (palantir#3702) * [datetime] fix(TimePicker): allow more natural text entry (palantir#3762) * [select] fix(Suggest): Default autoComplete for text input to "off" (palantir#3724) * [core] feat(Tab): spread HTML props to rendered div (palantir#3766) * Publish - @blueprintjs/core@3.19.0 - @blueprintjs/datetime@3.14.0 - @blueprintjs/docs-app@3.19.0 - @blueprintjs/docs-theme@3.4.0 - @blueprintjs/icons@3.11.0 - @blueprintjs/select@3.11.0 - @blueprintjs/table@3.8.0 - @blueprintjs/timezone@3.6.0 * fix: lifecycle methods in MultiSlider, Resizable, and TableBodyCell (palantir#3771) * Publish - @blueprintjs/core@3.19.1 - @blueprintjs/table@3.8.1 * [select] fix(QueryList): re-render when controlled items change (palantir#3776) * Publish - @blueprintjs/select@3.11.1 * [core] fix(Toast): fix bottom toast animation (palantir#3784) * [core] feat(Breadcrumb): render icon if provided through props (palantir#3786) * [core] fix(NumericInput): correct styles when placed inside label (palantir#3809) * [core] fix(PanelStack): do not trigger unintended animations (palantir#3787) * [core] docs: fix spelling of "dropdown" (palantir#3806) * chore: use latest tree-sitter-typescript from github (palantir#3812) * [core] fix(TagInput): prevent infinite setState in componentDidUpdate (palantir#3811) * chore: remove commented code * [core] fix(InputGroup): prevent infinite setState in componentDidUpdate (palantir#3813) * [icons] feat: new icons (palantir#3816) - New drawing - Data lineage - Archive - Unarchive - Signal search * [core] feat(Toaster): ability to set max number of active toasts (palantir#3770) * [datetime] feat: export IDateRangeInputProps (palantir#3821) * [core] fix(NumericInput): do not trigger onValueChange if value is changed via props (palantir#3814) * [datetime] feat(DateInput): add fill prop (palantir#3777) * [datetime] feat: add shortcuts to single date picker (palantir#3818) * [table] fix: cell copy to clipboard works in IE11 (palantir#3764) * [core] fix(Collapse): simplify lifecycle, fix animation bugs (palantir#3831) * [select] fix(MultiSelect): better handling of key events in Tag… (palantir#3836) * [core] fix(Switch): indicator background colors (palantir#3828) * Publish - @blueprintjs/core@3.20.0 - @blueprintjs/datetime@3.15.0 - @blueprintjs/docs-app@3.20.0 - @blueprintjs/icons@3.12.0 - @blueprintjs/select@3.11.2 - @blueprintjs/table@3.8.2 - @blueprintjs/test-commons@0.10.1 * [datetime] fix(Shortcuts): make shortcuts container focusable (palantir#3843) * Publish - @blueprintjs/datetime@3.15.1 * [core] feat(EditableText): add alwaysRenderInput experimental feature (palantir#3841) * [core] feat(Drawer): add Sass variables for background color (palantir#3857) * chore: update dev env prerequisites * [core] fix(TagInput): add intent styling when component is active (palantir#3855) * Publish - @blueprintjs/core@3.21.0 - @blueprintjs/docs-app@3.21.0 * [core] fix: Explicitly declare dom4 side effects (palantir#3867) * [core] chore: isolate dom4 import to its own module (palantir#3868) * [core] feat: high contrast CSS with color adjustments to pass WCAG requirements (palantir#3862) * Publish - @blueprintjs/core@3.22.0 - @blueprintjs/docs-app@3.22.0 * Fix PanelStack (palantir#3879) Approving since only test failures are unrelated * Fix DatePicker unit test (palantir#3880) DatePicker unit tests started failing in December because it relied on being able to press "next month". This change sets the initial month to January. * add tractor, truck, bring in data icons (palantir#3878) * Release core 3.22.1 * Fix 3882 (palantir#3886) Add gated input.focus to reinstate previous behavior * Update react-popper to include important bugfix (palantir#3885) * Update react-popper to include the fix from floating-ui/react-popper#320 * Update popper to 1.3.7 * Dedupe * Yarn fix * Yarny yarn * Yo yo yarn * Publish - @blueprintjs/core@3.22.2 - @blueprintjs/docs-app@3.22.2 * Include index.js files in sideEffects list (palantir#3876) * Include index files in sideEffects list * Remove unnecessary index.js sideEffects * Publish - @blueprintjs/core@3.22.3 - @blueprintjs/docs-app@3.22.3 * [timezone] fix: upgrade moment-timezone to fix Brazilian timezones (palantir#3873) * Publish - @blueprintjs/icons@3.13.0 - @blueprintjs/timezone@3.6.1 * [core] fix(Toast): bottom toasts exit in the correct direction (palantir#3911) Fixes palantir#3791 * [docs-app] fix(FormGroupExample): label ids (palantir#3892) * [core] fix(NumericInput): correct rounding of default value (palantir#3894) Fixes palantir#3889 * [docs-app] fix: CSS wrapping of main title in sidebar (palantir#3896) * [core] fix(Toast): bottom shadow is no longer clipped (palantir#3912) * [datetime] chore: fix tests which used year 2020 (palantir#3916) * chore: use ESLint to run TSlint (palantir#3887) * [core] feat: add intent prop to Slider and RangeSlider (palantir#3913) * [table] fix: invalidate grid before rendering table when dimensions change (palantir#3888) * chore: upgrade dependencies (palantir#3920) * [core] docs: update link to popper.js modifiers reference (palantir#3922) * [core] docs(Popover): fix text referencing "dismiss" buttons in example (palantir#3923) * [core] fix(EditableText): allow setting value to null in controlled mode (palantir#3924) * Publish - @blueprintjs/core@3.23.0 - @blueprintjs/datetime@3.15.2 - @blueprintjs/eslint-config@0.1.0 * [core] fix(Overlay): avoid rare crash in focus handling logic (palantir#3936) * [resources] update sketch palette with named colors instead of hex (palantir#3931) * chore: convert custom tslint rules to eslint (palantir#3917) * [eslint-plugin-blueprint] fix(icon-components): autofix (palantir#3938) also run this package's tests in CI properly * [table] fix: column resize calculation on header double click (palantir#3732) * [core] fix(Collapse): closing animation (palantir#3929) * Prepare release (palantir#3939) * Publish - @blueprintjs/core@3.23.1 - @blueprintjs/docs-app@3.23.0 - @blueprintjs/eslint-config@0.2.0 - @blueprintjs/eslint-plugin-blueprint@0.1.0 - @blueprintjs/node-build-scripts@1.0.0 - @blueprintjs/table@3.8.3 - @blueprintjs/tslint-config@2.0.0 * fix: eslint-config package reference, improve es-lint build script (palantir#3940) * Publish - @blueprintjs/eslint-config@0.2.1 - @blueprintjs/node-build-scripts@1.1.0 * chore: update README with new ESLint packages * [core] feat(PanelStack): add renderCurrentPanelOnly prop (palantir#3768) * [core] fix(PanelStack): rename prop and other fixes (palantir#3950) * [core] feat(Button): add "outlined" modifier (palantir#3947) * chore: upgrade to typescript 3.7 (palantir#3953) * [core] remove non-HTML attributes in overflow menu items (palantir#3956) * [icons] feat: add diagnosis and lab test icons (palantir#3966) * [core] fix(HtmlSelect): text color for disabled options in dark mode (palantir#3968) * [core] docs(Alert): clarify that intent applies to icon too (palantir#3978) * [core] fix(InputGroup): right element padding adjusting on update (palantir#3973) * [select] feat(Suggest): sync activeItem with selectedItem on popover close (palantir#3934) * Publish - @blueprintjs/core@3.24.0 - @blueprintjs/docs-app@3.24.0 - @blueprintjs/icons@3.14.0 - @blueprintjs/select@3.12.0 * [datetime] fix(DateRange): values are possibly null, not undefi… (palantir#3983) fixes palantir#3970 * [core] feat(NumericInput): supply input element to onValueChange (palantir#3982) * [core] feat(NumericInput): supply input element in onValueChange callback * small refactor, use optional chaining to invoke callback * fix lint * fix more tests * fix lint, remove describe.only * [eslint-config] docs: add README (palantir#3985) * [docs-app] feat(BreadcrumbsExample): render current as input (palantir#3986) * [core] feat(TagInput): handle delete to remove items (palantir#3993) Allows users to press `DELETE` on their keyboards to delete an item from `<TagInput />`, which in turn is used by the `Select` family of components. Handling `DELETE` to remove item mimics the way `DELETE` works in a text editor, where an user can delete from the beginning of the line forward. Reaching the end of the line, in our case passing the last selected item in `<TagInput />` will stop deleting. Moving the selection to the first item and deleting from that point onwards repeatedly will delete all the selected items. * [core] fix(Button): remove invalid HTML attr (palantir#3998) update INVALID_PROPS list used by removeNonHTMLProps() utility fn * [datetime] docs: improved localization code example (palantir#4003) * chore(deps): bump acorn from 5.7.3 to 5.7.4 (palantir#4011) Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](acornjs/acorn@5.7.3...5.7.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [datetime] feat(DatePicker): add support for dayPickerProps.renderDay (palantir#4012) * docs(README): update code sandbox link Co-authored-by: Sebastian Brückner <mail@invlid.com> Co-authored-by: Ed Hinchliffe <ed@pixelnebula.com> Co-authored-by: Chris Lewis <cmslewis@gmail.com> Co-authored-by: Gilad Gray <ggray@palantir.com> Co-authored-by: Gilad Gray <giladgray@gmail.com> Co-authored-by: yixunx <yixunx@gmail.com> Co-authored-by: Jeff Lau <jlau@uselesspickles.com> Co-authored-by: Gianfrancø Palumbo <gianpaj@users.noreply.github.com> Co-authored-by: Philip Harrison <philip@mailharrison.com> Co-authored-by: Grey Baker <greysteil@gmail.com> Co-authored-by: Mark Sinapilo <markdhel@users.noreply.github.com> Co-authored-by: mohanaravind <mohanaravind@gmail.com> Co-authored-by: Piotr Adam Kwiatkowski <contact@piotrkwiatkowski.co.uk> Co-authored-by: Leah Anderson <leah.a.anderson@gmail.com> Co-authored-by: Isabel Muñoz <teanocrata@gmail.com> Co-authored-by: Endi Modric <endi.modric@outlook.com> Co-authored-by: MGHawes <hawes.info@gmail.com> Co-authored-by: Marvin Sum <831708+marvinsum@users.noreply.github.com> Co-authored-by: Phil Chen <c.phillip91@gmail.com> Co-authored-by: Yury Shevchenko <n1313@users.noreply.github.com> Co-authored-by: Shuyang Li <shuyang.li.95@gmail.com> Co-authored-by: Jacek Jagiełło <jacekjagiello47@gmail.com> Co-authored-by: Acko <spasic.acko.95@gmail.com> Co-authored-by: Adi Dahiya <adi.dahiya14@gmail.com> Co-authored-by: Adi Dahiya <adahiya@palantir.com> Co-authored-by: Gabe Boning <gboning@gmail.com> Co-authored-by: Stephen Kennedy <stephenjameskennedy@gmail.com> Co-authored-by: jamison judge <jj@jamisonjudge.com> Co-authored-by: wangxiaolei <fatelei@gmail.com> Co-authored-by: Matt Conway <mattconway55@gmail.com> Co-authored-by: Thomas Rich <tnrich@teselagen.com> Co-authored-by: Paul Okuda <paulyokuda@gmail.com> Co-authored-by: jroitgrund <jroitgrund@gmail.com> Co-authored-by: Nick Zelei <nickzelei@gmail.com> Co-authored-by: peachfuzz <32380679+peachfuzz@users.noreply.github.com> Co-authored-by: Christopher Yu <cyu06@hotmail.com> Co-authored-by: Gertjan van Oosten <gertjan@west.nl> Co-authored-by: Bala <bala_krishna@outlook.com> Co-authored-by: James Greenleaf <james@greenle.af> Co-authored-by: David <david.lobosco@uprightlabs.com> Co-authored-by: Rhys Brett-Bowen <rhysbrettbowen@gmail.com> Co-authored-by: Chris Lott <chrisnlott@gmail.com> Co-authored-by: alecf <alecf@flett.org> Co-authored-by: n1xx1 <simo.sc22@gmail.com> Co-authored-by: Sebastian Brückner <sbrueckner@palantir.com> Co-authored-by: Mac Lockard <mlockard@palantir.com> Co-authored-by: ericjeney <me@ericjeney.com> Co-authored-by: Shovon Hasan <im.shovonhasan@gmail.com> Co-authored-by: Tanmoy Bhowmik <tanmoy.openroot@gmail.com> Co-authored-by: Benjamin Lee <leebyp@gmail.com> Co-authored-by: Veda <pal.veda.deepta@gmail.com> Co-authored-by: Jeremy Paterson <jaydpaterson@gmail.com> Co-authored-by: Mihail Novikov <thepocp@gmail.com> Co-authored-by: 李逸飛 <45546645+li-yifei@users.noreply.github.com> Co-authored-by: Vadzim <v@vadzim.info> Co-authored-by: Nathan Hinish <nathan.hinish@gmail.com> Co-authored-by: doanguyen <dungnv2410@gmail.com> Co-authored-by: Daniel Saewitz <switz213@gmail.com> Co-authored-by: Garrett B <garrettgsb@gmail.com> Co-authored-by: Thibault V <8404502+thibaultvanluchene@users.noreply.github.com> Co-authored-by: Darren Zhao <darryqueen@berkeley.edu> Co-authored-by: Adam Storr <155064+adamstorr@users.noreply.github.com> Co-authored-by: Lei Ferretti <lei.ferretti@oaknorth.ai> Co-authored-by: Tobias Lengsholz <tobias.lengsholz@invision.de> Co-authored-by: trevor <tmehard@gmail.com> Co-authored-by: Pep Rodeja <pep@rodeja.me> Co-authored-by: Caleb Angelino <belac9615@users.noreply.github.com> Co-authored-by: Adam Storr <adamstorr@gmail.com> Co-authored-by: jamesgiu <james.giuffrida@gmail.com> Co-authored-by: Max Bucknell <me@maxbucknell.com> Co-authored-by: Jonathan Christopher <nathanchrs@users.noreply.github.com> Co-authored-by: Ryan Hermstein <rlhermstein@yahoo.com> Co-authored-by: Chu-Ya Chia <chuyachia@gmail.com> Co-authored-by: Bill Dwyer <bdwyer@palantir.com> Co-authored-by: Miklós András Danka <danka.miklos@gmail.com> Co-authored-by: Stephanie Yu <stephaniey@palantir.com> Co-authored-by: Meike <meike@grewing.eu> Co-authored-by: J Paterson <contact@jpatersondev.com> Co-authored-by: Denis Sokolov <denis@sokolov.cc> Co-authored-by: Igor Lysak <igorlysak@agilestacks.com> Co-authored-by: John Wiseheart <johnwiseheart@gmail.com> Co-authored-by: Boaz Rymland <boazrymland@users.noreply.github.com> Co-authored-by: Johnny Goodnow <jgoodnow@fastmail.com> Co-authored-by: David Esteves <estevesd@users.noreply.github.com> Co-authored-by: John Wiseheart <jwiseheart@palantir.com> Co-authored-by: Valentine Nuikin <zwerg44@gmail.com> Co-authored-by: Radosław Miernik <radekmie@gmail.com> Co-authored-by: Charles Perinet <charles.perinet@gmail.com> Co-authored-by: Spencer Sutton <spencersutton@users.noreply.github.com> Co-authored-by: Rootul Patel <rootulp@gmail.com> Co-authored-by: lexistein <61256233+lexistein@users.noreply.github.com> Co-authored-by: Trevor Mehard <trevor.mehard@crunchydata.com> Co-authored-by: Leon Coto <grancalavera@users.noreply.github.com> Co-authored-by: Lumyo <thib.bouillon@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Malik Bagwala <m.bagwala@gmail.com>
Specifying the directory as part of the repository field in a package.json allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](npm/rfcs#19).
Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19.
Specifying the directory as part of the `repository` field in a `package.json` allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in npm/rfcs#19.
Specifying the directory as part of the repository field in a package.json allows third party tools to provide better support when working with monorepos. For example, it allows them to correctly construct a commit diff for a specific package. This format was accepted by npm in [npm/rfcs#19](npm/rfcs#19).
As briefly discussed on https://discordapp.com/channels/317475976369930241/317477684999487489.